• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[Trigger] How exactly does permanent abilities work?

Status
Not open for further replies.
Level 30
Joined
Jul 23, 2009
Messages
1,033
I know that abilities need to be turned permanent to persist through morphing etc.

I need to know exactly what this means though.

Does the unit need to already have the ability, which would mean the function targets the actual ability that the unit has or the general meaning of that ability linked to that unit.

The reason I need to know this is because I have certain spells in my map that applies "buff-holder"-abilities to the player hero. The hero is able to morph and I realized those abilities will vanish as they are not permanent. So could I just line all up those abilities in a map initialization-trigger and make them permanent right away? Or should I make them permanent every time the player hero receives such a buff-holder ability?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,269
Although I do not know for certain, I would imagine it affects existing abilities on a hero. From a data point of view this makes the most sense as the unit would have some form of ability objects on it which hold that information. It does not make sense that each unit would have a "permanence" table containing all ability entries or that all ability entries have "permanence" mapped to specific units.

If in doubt you can always make the ability not permanent before removing it from the unit as part of your triggers. You could even wrap the functionality into a nice custom function call.
 
Status
Not open for further replies.
Top