...or anybody, I'm not fussy.
Please help.
I am having difficulty with using flag masks. Note, just masks, not the individual flags. I have those sussed and having no problem with them. However, as soon as I use a mask - nothing happens. I have checked the report.txt produced by the event parser and it shows no errors. In fact the rest of the event actions fires fine, but the FLAG action used with a mask appears to do bugger all. Here is the event I am referring to:
@IF
UNITKILLED
unit=Werewolf
attacker=ANYBODY
defender=Firetop Mountain
@AND
CHECKFLAG
who=Firetop Mountain
flag=2
state=on
@THEN
TEXT
Congratulations! you have killed the werewolf
but something has heard you...
ENDTEXT
FLAG
continuous
who=Firetop Mountain
mask=0b111111111111111111111111111111111
state=off
@ENDIF
I know the event fires because I see the text, so I know thats not the problem.
But the events that rely on the setting of all the flags back to off don't. (I am using the flags as a resettable counter).
Any suggestions? 'cos I'm out. I can get round this by setting 32 individual flags but this takes up 32 events!!!!!!!!
PS no errors in report.txt
PPS have tried hex notation
PPPS have patch
PPPPS the event is from my upcoming scenario,
the release date of which is slipping...
Please help.
I am having difficulty with using flag masks. Note, just masks, not the individual flags. I have those sussed and having no problem with them. However, as soon as I use a mask - nothing happens. I have checked the report.txt produced by the event parser and it shows no errors. In fact the rest of the event actions fires fine, but the FLAG action used with a mask appears to do bugger all. Here is the event I am referring to:
@IF
UNITKILLED
unit=Werewolf
attacker=ANYBODY
defender=Firetop Mountain
@AND
CHECKFLAG
who=Firetop Mountain
flag=2
state=on
@THEN
TEXT
Congratulations! you have killed the werewolf
but something has heard you...
ENDTEXT
FLAG
continuous
who=Firetop Mountain
mask=0b111111111111111111111111111111111
state=off
@ENDIF
I know the event fires because I see the text, so I know thats not the problem.
But the events that rely on the setting of all the flags back to off don't. (I am using the flags as a resettable counter).
Any suggestions? 'cos I'm out. I can get round this by setting 32 individual flags but this takes up 32 events!!!!!!!!
PS no errors in report.txt
PPS have tried hex notation
PPPS have patch
PPPPS the event is from my upcoming scenario,
the release date of which is slipping...
Comment