| 02-19-2009, 04:22 AM | #1 |
I'm having alot of issues with trying to determine this; I see no clear pattern to the orderID's of autocast abilities, furthermore it seems regular spells can fall into the same order range. The only clear thing I've managed to find is that OFFid is always ONid+1. So; does anyone know of a way to determine when an autocast ability is toggled, and to determine which ability it was? |
| 02-19-2009, 05:37 AM | #2 |
^this They all end with on/off , although I think you would have to make sure its not certain orders such as divine shield / chemical rage ( this is from memory, so don't quote me ! ) |
| 02-25-2009, 02:19 AM | #3 |
No matter what orderstring I use; the value of the order seems constant? JASS:function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing call BJDebugMsg(I2S(GetIssuedOrderId())) endfunction //=========================================================================== function InitTrig_Untitled_Trigger_001 takes nothing returns nothing set gg_trg_Untitled_Trigger_001 = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, EVENT_PLAYER_UNIT_ISSUED_ORDER ) call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions ) endfunction Any ideas? |
| 02-25-2009, 03:11 AM | #4 |
You can only change orderstring of "channel" ability. |
| 02-25-2009, 12:16 PM | #5 |
JASS:OrderId2String(GetIssuedOrderId()) not sure if that makes a difference, but if it didnt, then there would be no point to the native I always used this method the ability itself useually contains the order string for the different aspects of its usage - though they are sometimes different in game then what is listed in the object editior (go figure) |
| 02-25-2009, 12:36 PM | #6 |
Some orderIds have (null) orderstrings. edit: To actually help: maybe you can get the orderstring issued and check if it ends with either "on" or "off". Note what is said above. |
