HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetIssuedOrderId

01-22-2007, 11:47 PM#1
Joker
This there a integer ID for move, attack, etc?
01-22-2007, 11:50 PM#2
Mezzer
Ha? Could you please make some sense of that sentence?
01-22-2007, 11:50 PM#3
Av3n
Ummm, i don't think so Joker, cause attack and the others is in built.

-Av3n
01-22-2007, 11:53 PM#4
Mezzer
Ah that! Hang on, I believe there is, let me go find it.

Edit: Meh, only for some stuff apparently.
01-22-2007, 11:55 PM#5
Ammorth
I believe there is cause the GUI action involving orders converts String to ID. I won't look it up though, cause Mezzer is around doing that
01-23-2007, 12:00 AM#6
Mezzer

There indeed are, and a couple are mentioned in an old tutorial (bottom of first post). Tutorial

But not the ones you need. I think I had these written down somewhere. Off to look again.

Edit: Can't find 'em. Anyway, use this to figure them out:
Trigger:
Test
Collapse Events
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order targeting a point
Conditions
Collapse Actions
Custom Script : call BJDebugMsg(I2S(GetIssuedOrderId()))

Hope that helps!
01-23-2007, 02:48 AM#7
Av3n
Use conditions for Orders Mezzer, using the orders Condition

-Av3n
01-23-2007, 11:56 AM#8
Mezzer
Why? This'll fire for either event.

Anyway, is this what you needed Joker?
01-23-2007, 03:14 PM#9
The)TideHunter(
Quote:
Originally Posted by Av3n
Use conditions for Orders Mezzer, using the orders Condition

-Av3n

It would be useless if you added conditions...
Its obvious what ability your looking for because you clicked it.
01-23-2007, 05:12 PM#10
Rising_Dusk
Might want to add a player condition though.
You don't want creeps' attack/stop/etc. orders spamming your screen when you do click your ability.
01-23-2007, 08:46 PM#11
Av3n
Im still right about conditions though...

-Av3n
01-23-2007, 08:55 PM#12
The)TideHunter(
Well, no not really, if you want to find out a order ID, you would do it on a new map, with nothing but a hero and a creep or something.
01-23-2007, 09:30 PM#13
Mezzer
And you would want to see the attack, move and stop orders, since they are what you're looking for. In integer form though.
01-23-2007, 09:32 PM#14
Rising_Dusk
Quote:
Well, no not really, if you want to find out a order ID, you would do it on a new map, with nothing but a hero and a creep or something.
Dunno about you, but I don't have that kind of time to waste.
Besides, who are you guys to tell him that he doesn't want to isolate a specific order?
He might need conditions in the future, deal with it, they're reasonable.
Sheesh.