I'm having a real problem with the checkflag command in events.txt. I have an event that reads
@IF
UNITKILLED
unit=UnitA
attacker=TribeA
defender=TribeB
@AND
CheckFlag
who=TribeA
Flag=1
State=Off
@THEN
TEXT
Explanatory text
ENDTEXT
GIVETECHNOLOGY
technology=96
receiver=TribeA
@ENDIF
This event completely refuses to activate, regardless of the state of the flags, however if
@AND
CheckFlag
who=TribeA
Flag=1
State=Off
is removed it works fine. Am I doing something very stupid? Or is there another explanation? I'm using the patched version.
@IF
UNITKILLED
unit=UnitA
attacker=TribeA
defender=TribeB
@AND
CheckFlag
who=TribeA
Flag=1
State=Off
@THEN
TEXT
Explanatory text
ENDTEXT
GIVETECHNOLOGY
technology=96
receiver=TribeA
@ENDIF
This event completely refuses to activate, regardless of the state of the flags, however if
@AND
CheckFlag
who=TribeA
Flag=1
State=Off
is removed it works fine. Am I doing something very stupid? Or is there another explanation? I'm using the patched version.
Comment