Announcement

Collapse
No announcement yet.

CheckFlag problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CheckFlag problems

    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.

  • #2
    Change to lowercase all STATE directives in your FLAG and CHECKFLAG statements. In other words, change On and Off to on and off.

    Comment


    • #3
      Ah, I'm doing something very stupid. Thanks

      Comment

      Working...
      X