- Joined
- Feb 27, 2007
- Messages
- 5,578
I have this in some code and I don't know why they're not getting set. I thought it was the constant keyword but I removed that and it's still happening. I have to set them manually in an init function.
JASS:
globals
private constant integer NEXT_ORD = OrderId("rainoffire")
private integer CNCL_ORD = OrderId("taunt")
private constant integer BUFF_ORD = OrderId("cripple")
endglobals
//run long after map init
call BJDebugMsg(I2S(CNCL_ORD)) //returns 0
set CNCL_ORD = OrderId("taunt")
call BJDebugMsg(I2S(CNCL_ORD)) //returns the right number