HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Determining a generic autocast toggle?

02-19-2009, 04:22 AM#1
Blackroot
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
Bobo_The_Kodo
^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
Blackroot
No matter what orderstring I use; the value of the order seems constant?

Expand JASS:

Any ideas?
02-25-2009, 03:11 AM#4
Bobo_The_Kodo
You can only change orderstring of "channel" ability.
02-25-2009, 12:16 PM#5
emjlr3
Collapse 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
fX_
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.