Warcraft III resources & community, 2003–2006 · archived

Ordering to cast spells?

7 posts
#1

Ordering to cast spells?

i was trying to do the "create invis unit and order it to cast a spell". Something isnt working. I want it to cast a custom spell but all there is to cast are the preset spells in the list. How do i do a trigger that is "order unit to cast a spell from all of spells in object editor" ?
#2
you have o use JASS, probably xD. these presets just reference orderstrings, like Human Mountain King - Storm Bolt really is just "stormbolt". you have to use the proper JASS func ( or WeU ) and imput the Orderstring of the ability you are trying to activvate. anyways, however, im pretty sure every orderstring possible are in the Issue Order funcs.
#3
Me i didnt did it in jass and it worked... if the base spell u used is in this preset... make the unit cast this preset. thats what i did but i dont know if summons are there...

have luck.
#4
but i mean if the GUI doesnt offer it, you'll have to use JASS xD
#5
ok thanks a ton
i figured i had to use JASS but where is the orderstring of my spell? how do i find this out?
#6
it has it somewhere in the data, under the field Order String xD

for example, you would find thunderbolt as Storm Bolt's orderstring, and dispelmagic as Dispel Magic's
#7
ok ty vm