[Trigger] Jass code in GUI

Status
Not open for further replies.
Level 9
Joined
Oct 17, 2007
Messages
547
Does anyone know how to properly use the jass code "akeabilitypermanent" in GUI? I try to search for it in serveral forums but have no luck.

EDIT: btw does anyone know how to make a spell only effect undead units?
 
To the best of my knowledge, there is no GUI action corresponding to that function. If you want to use that function but still wanna stick with GUI, just use the Custom Script action in GUI and type in "call MakeAbilityPermanent(...)".

Unless you trigger your spell, there's no way to make it target only undead (unless you use some improvised methods like making every undead unit have the "Ancient" classification and checking "Ancient" in the allowed targets field in your spell, of course this would mean you couldn't have any other units in your game be "ancients" and you would also have to change Game Interface text to replace every instance of "Ancient" with "Undead".)
 
"Dead" referes to corpses, e.g. Resurrection and Raise Dead target corpses.

If you want to prevent ability being cast on undead, use trigger with "Unit is issued order targeting an object", and if it is not undead, order the issued unit to stop. (Ordering won't work sometimes, in that case you can use Channel ability with 0.1 Follow Trough Time and Disables other abilities=true).
If you chechec for undead when the spell was cast, the unit would still lose mana.
 
Can you explain a bit more on how to make the makeabilitypermanent work in GUI using custom text? Basically just let me know what to put in the custom text and where to put the spell id.
 
...making every undead unit have the "Ancient" classification and checking "Ancient" in the allowed targets field in your spell...
That's what i had to do, because i wanted a Paladin, but there were human enemies too. Awful business really, must also change the Interface and all. But there seems to be no other way.
 
i dun know about this but i think that u can use race to classify unit like picked unit or something equal to race undead. Make sure to set those unit to undead race.
 
Status
Not open for further replies.
Back
Top