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

Help with a skill

Status
Not open for further replies.
Level 16
Joined
Aug 20, 2014
Messages
263
I have a hero that gives some skills to units when he's in the unit's cargo only via triggers.
Now I have a unit that use "ethereal form" skill. The skill replace my unit with anotherone without the skills (it still has the hero in cargo) however, I need that the added skills being pass to the new ethereal unit and to the subsecuent replaced units when it turns corporeal again.
any ideas about how to deal with this?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,916
You can use this to make the abilities permanent so that they don't get removed when morphing:
  • Custom script: call UnitMakeAbilityPermanent(unit, true, ability)
Example:
  • Set Variable MorphUnit = Transporting unit
  • Set Variable Ability1 = Acid Bomb
  • Unit - Add Ability1 to MorphUnit
  • Custom script: call UnitMakeAbilityPermanent(udg_MorphUnit, true, udg_Ability1)
 
Level 16
Joined
Aug 20, 2014
Messages
263
Ty buddy it works perfectly!
You can use this to make the abilities permanent so that they don't get removed when morphing:
  • Custom script: call UnitMakeAbilityPermanent(unit, true, ability)
Example:
  • Set Variable MorphUnit = Transporting unit
  • Set Variable Ability1 = Acid Bomb
  • Unit - Add Ability1 to MorphUnit
  • Custom script: call UnitMakeAbilityPermanent(udg_MorphUnit, true, udg_Ability1)
 
Status
Not open for further replies.
Top