• 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] Casting Item based spells

Status
Not open for further replies.
Level 7
Joined
Aug 31, 2006
Messages
132
I have a question. Ok its a bit complicated. I created an "Posession" ability. If my hero casts this on an enemy unit, this one will become friendly and will get a custom Soul Theft ability that he then must activate on hero. The problem is that the spell is based on item ability and i cant use the normal GUI function. I also changed the "Order ID's" of the ability to "load". Is there any way using "Custom Script" to force unit using it?
 
Level 6
Joined
Mar 2, 2006
Messages
306
yes but if he converts item-ability into unit-ability, it quite often has empty order string and you know that you can't change order strings just like that...

i have encountered that before and best i could come up with is giving an item to a dummy unit i just created and casting the item-spell that way.

of course, i could be totally wrong and overlooking something obvious, but we all know just how impossible that sounds... :cool:
 
Level 7
Joined
Aug 31, 2006
Messages
132
Also yes the String was empty. I then changed it to load but, it didnt work to force the unit to load hero. I also dont know if its possible to use this in GUI but is it not possible using custom script? (call remove udg_something)
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Also yes the String was empty. I then changed it to load but, it didnt work to force the unit to load hero. I also dont know if its possible to use this in GUI but is it not possible using custom script? (call remove udg_something)
Wait, what? You want to change the orderstring to load and have it physically load units? That's not how the orderstring works -- the orderstring is just something so that warcraft (and your triggers) can handle abilities. If you want to have the effect of an ability, you have to base your ability off that one.
 
Status
Not open for further replies.
Top