Need Help with Morphing Ability

MorbazanRhot

New Member
Reaction score
7
I have what I hope is a simple question: is there a way to make it so that morphing from one form into another and then reverting back does not reset ability cooldowns? I'm currently using the Bear Form morphing ability, but I'm open to using any others that can be permanent (ie don't have a limited duration that will expire and revert the hero back automatically). I hate morphing abilities with a passion, so any help will be much appreciated =).
 

Dragoon_Jett

New Member
Reaction score
0
I am not 100% sure but I would say no. You would need to trigger and maybe store the hero to not reset cooldowns.
 

ShadowInTheD

Active Member
Reaction score
12
Well, the only thing I can think of, and you may have to do this indirectly, is to find the cooldown of each ability, morph the unit, and then set all the cooldowns back to their saved value (I don't know if this can actually be done)
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
"Unit - Replace" keeps Exp, Cooldowns, HP and mana, ain't that great?

Edit: Oh, and items.
 

MorbazanRhot

New Member
Reaction score
7
"Unit - Replace" keeps Exp, Cooldowns, HP and mana, ain't that great?

Edit: Oh, and items.

Hmm... that is helpful, however, I wanted the hero to have different skill-sets in the two forms, thus if he was replaced into the other form and then replaced back into his normal form, would it still remember the original cooldowns for abilities that were not present in his second form?
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
It would, but real time cooldown, no pause (say you have ability that has 180 seconds cooldown, you use it, then 10 seconds after you morph and you stay in morphed form for 100 seconds, then morph back, then you ability would have 70 seconds left as cooldown)

If you want the cooldown to pause, you could always make 2 different units, sync their items, hp, exp and mana, and when one of them isnt being used, pause them so CD pauses too
 

MorbazanRhot

New Member
Reaction score
7
Alright, well I tested out the replacing method, and it doesn't seem to be working because it unlearns the hero's abilities each time (and while I could trigger it to get the abilities he had and add them to him again, then the cooldowns would definitely be removed). Am I doing something wrong? And if not, I'm still looking to see if there are any other solutions? =D

Here are the triggers I used:

Code:
Bear Form
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bear Form testing human
    Actions
        Unit - Replace (Triggering unit) with a Qwivoth bear 1 using The old unit's relative life and mana
        Set TheNaturalist = (Last replaced unit)
        Selection - Select (Last replaced unit) for (Owner of (Triggering unit))

Code:
Bear Form Copy
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bear Form testing bear
    Actions
        Unit - Replace (Triggering unit) with a Qwivoth using The old unit's relative life and mana
        Set TheNaturalist = (Last replaced unit)
        Selection - Select (Last replaced unit) for (Owner of (Triggering unit))
 

Crusher

You can change this now in User CP.
Reaction score
121
Hmm well you could try to add the same (new) abilities each time when you morph . I think that will solve the problem.
 

Tom Jones

N/A
Reaction score
437
Do this for your heroes abilities:
Trigger:
  • Actions
    • Set Some_Ability = *A ability*
    • Set Some_Unit = *A unit*
    • Custom script: call UnitMakeAbilityPermanent(udg_Some_Unit,true,udg_Some_Ability)

*Edit*
Here's a possible easy solution:
Trigger:
  • Test A
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to *Unit type of unit with morph*
      • (Learned skill level) Equal to 1
    • Actions
      • Custom script: call UnitMakeAbilityPermanent(GetTriggerUnit(),true,GetLearnedSkill())
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top