HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Finding out order IDs

06-05-2006, 02:17 AM#1
moonliterhythm
I'm trying to have a dummy unit cast "clarity potion" on a hero in jass, but i can't since i don't know the order string of the ability "clarity potion"

how can i find its order string?
06-05-2006, 02:21 AM#2
TaintedReality
Trigger:
Test
Collapse Events
Unit - A unit Is issued an order targeting an object
Conditions
Collapse Actions
Game - Display to (All players) the text: (String((Issued order)))

Put that trigger into your map to find out. Now, test your map, and use the Clarity Potion on someone manually and see what the order is. For some reason it doesn't display the order id in the object editor, maybe cause it's an item ability.
06-05-2006, 03:25 AM#3
moonliterhythm
I tried that already, altho it's not an object. Nothing showed up.
06-05-2006, 04:06 AM#4
Vexorian
That trigger would show orderstring , not orderid.

this one will do the job:
Trigger:
Test
Collapse Events
Unit - A unit Is issued an order targeting an object
Conditions
Collapse Actions
Custom Script : call BJDebugMsg(I2S(GetIssuedOrderId()))