• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Ability - remove or disable?

Status
Not open for further replies.
Level 9
Joined
May 31, 2010
Messages
366
Description of what i want to do: i want a metamorphosis ability that changes the form of the hero and so the hero, for the duration, gets a full set of new abilities. i did this so far by removing the abilities (storing their levels before) and adding the new ones, after x seconds remove them again and adding the old ones and set their levels.

now i noticed when the hero levels up during metamorphose and u spend that skill point u learn that ability (what i actually dont want), after meta runs out, all abilities are set by a trigger to their levels they had before, resulting in the skill point being lost.

can i prevent that (and maybe safe the work of storing the abilities levels and setting them again) if i just disable them and enable them instead of removing and adding?


also i have another issue, when the hero has a reincarnation ability in both forms, both forms have their own cooldowns, reuslting in him dying during meta, being revived in his normal form, still having reincarnation with no cooldown (so he can die a second time). - maybe someone knows a solution for this too?
 
Level 11
Joined
Nov 23, 2013
Messages
665
Maybe you can check when your hero learns a skill when morphed, and if so, when demorphed you can use this trigger:
  • Trigger
    • Events
    • Conditions
    • Actions
      • Hero - Modify unspent skill points of {Your Hero}: Add 1 points
Or you can disable experience gain for hero when he is morphed if you wish.

About disabling/enabling abilities, I'd say it depends on the model you use. If you use one single model for both morphed and demorphed form, with alternate animations (like Demon Hunter), I think you might be able to disable/enable skills and get them back properly after demorphing. However, if the hero uses some other model as his morphed form, then I don't think you will get the right abilities levels back when the metamorphosis runs out.

As for Reincarnation, sorry, I have no clue about it.
 
Level 9
Joined
May 31, 2010
Messages
366
yes, thats what i came up with too, i just wanted a "cleaner" way if possible then just a "workaround" xD

diasable exp gain would suck xD

well no its def. 2 diffrent models and 5 diffrent abilities on each of the 2 + 1 shared ability that both have

still thank you for ur reply :D
 
Status
Not open for further replies.
Top