HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

order unit to cast custom spell

11-11-2003, 08:44 AM#1
curi
how do i order a unit to cast a custom spell?
11-11-2003, 08:54 AM#2
AllPainful
Go into the object editor and view raw data. Find the 4 digit code for your custom spell.

Goto the trigger editor and make a trigger to tell your unit to cast "blizzard", then convert the trigger to custom text and change the 4 digit code for blizzard into the 4 digit code for your spell, and wallah.
11-11-2003, 09:10 AM#3
curi
but when i convert it to custom text with blizzard it doesn't change into an ability code. the issue a unit an order function actually takes "blizzard" as an argument not an ability code.
11-11-2003, 09:17 AM#4
AllPainful
Hmm... your right...

I must be losing it... I could've sworn that was how it was done...

Sorry. Maybe someone else who knows better will post a reply.
11-11-2003, 09:18 AM#5
Drevlin
for the order you only need the orderstring. You can find it in the object manager under the spell. There are order strings for activate/use, auto on, auto off...
Use the order string for use.
11-11-2003, 09:24 AM#6
AllPainful
I just searched the forum....

And I found multiple responses that all say the same thing:

"Just issue the order of the base ability."

In other words, order the unit to cast the ability that you based the custom ability off of, and he will cast the custom ability (assuming the unit doesn't have the ability you based it off of as well...)
11-11-2003, 09:37 AM#7
FF_Behemoth
Quote:
Originally posted by AllPainful
I just searched the forum....

And I found multiple responses that all say the same thing:

"Just issue the order of the base ability."

In other words, order the unit to cast the ability that you based the custom ability off of, and he will cast the custom ability (assuming the unit doesn't have the ability you based it off of as well...)


That took me a sec to realize that you are correct, I hope the original poster understood that..
11-11-2003, 09:55 AM#8
curi
ok i tried it but it's not working. i put a guy on my map with a custom flamestrike, gave him 3 levels in it, set the order string to flare, and then made a trigger telling him to flare a certain point 2 seconds after the map loads. but he doesn't do anything.
11-11-2003, 09:58 AM#9
curi
oh, heh. i set it back to flamestrike and told him to flamestrike, and now it works. something about changing the order string screws stuff up.
11-11-2003, 10:02 AM#10
FF_Behemoth
thats because the orderstring 'flare' should only be used when you base a spell off flare.

You can cast flare while flamestrike is goin off if you Like, I can help.
11-11-2003, 10:42 AM#11
curi
my custom spell now works! (it combines flamestrike and firebolt into one spell for a firemage) thanks guys.

(note to self: if u make a shade cast a spell, either give it enough mana or make the spell free)