Warcraft III resources & community, 2003–2006 · archived

Order String Problem

7 posts
#1

Order String Problem

I made an ability (the mirror image one from the other posts), but in order for the mirror images to be created, a dummy targets the caster with the "Item Illusion" ability (turned into a unit ability). The problem I'm having is that the dummy won't cast the spell. Originally the spell "Item Illusion" didn't have an order string, so I assigned one; firebolt. I then ordered the dummy with this ability to cast firebolt on the caster, but it doesn't work. Does anyone have any idea why? Is it because you can't assign orderstrings to abilities that originally don't have order strings?
#2
Of course it doesn't work. Changing the order string doesn't have any effect. The only solution would be to order the unit to use the ability through its ID (which is 852008). But in order to do so, you need to use Custom Script and call the function IssueTargetOrderById.

~Daelin
#3
Or you can add that spell on an item to the dummy unit, and order them to use [Last Created Item]
#4
Case in which do not complain that it doesn't work. First check that the dummy has HERO INVENTORY!

~Daelin
#5
Well, yeah, i dismissed that as obvious, but maybe i shoulda mentioned it :?
#6
I didn't mean to make it sound that way... Just wanted to make sure that there are no further questions (hopefully), because in some cases, it happens that not even the obvious is clear.

~Daelin
#7
Like people writing realistic rivers and forgetting to mention disabling Enforced Water Height Limits :D