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

[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?
 
Level 11
Joined
Feb 22, 2006
Messages
752
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".)
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
"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.
 
Level 9
Joined
Oct 17, 2007
Messages
547
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.
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
...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.
 
Level 3
Joined
Mar 25, 2009
Messages
32
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.
Top