• 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.

[Spell] Metamorphosis - Skills disappear

Status
Not open for further replies.
Level 4
Joined
Nov 27, 2012
Messages
85
Hello, on the map I'm working on, each hero is given 4 random skills at start via Engineering Upgrade, no spellbooks.

I'm trying to implement a morphing skill, but after morphing and also when reverting, all previously learned skills are removed, as well as unlearned skills are no longer available.
Also, if the hero learned an aura ability, while the icon and any further levels will disappear, the hero will still have that aura.

Thanks for any help
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
To still retain the ability (mostly added abilities) on a single unit, use this function;
  • Custom script: call UnitMakeAbilityPermanent(whichUnit, true, spellId)
For example, you want to make Ability A permanent on Caster, you would do this;
  • Actions
    • Set Ability = Ability A
    • Set Caster = (Triggering unit)
    • Custom script: call UnitMakeAbilityPermanent(udg_Caster, true, udg_Ability)
 
Level 4
Joined
Nov 27, 2012
Messages
85
Ok, there are 153 possible skills, so the first variable, in WE you can only choose what ability to set it from the list of abilities, which from the sounds I would have to create this trigger for every skill on each hero

How can I set it to be dynamic?
 
Last edited:
Status
Not open for further replies.
Top