civ2units
Emperor
I´ve a question about the flags in events.
France (Human player) conquers Barcelona (Neutral Alliance, controlled by AI). The flag for the AI (Neutral Alliance) will set to "on", maybe no. 31. If the Neutral Alliance liberates the city, does the flag automatically goes to "off" or do I have to create a trigger.
For example:
@IF
CITYTAKEN
city=Barcelona
attacker=French
defender=Neutral Alliance
@THEN
flag
continuous
who=Neutral Alliance
state=On
flag=26
@ENDIF
;Barcelona liberated
@IF
CITYTAKEN
city=Barcelona
attacker=Neutral Alliance
defender=French
@THEN
flag
who=Neutral Alliance
state=Off
flag=26
@ENDIF
Do I need the last one?
What about when the flag for the Neutral Alliance is set to "on" at the start of the game and get to "off" when France conquers the city. Does the flag automatically get to "on" back when the Neutral Alliance liberates the city?
France (Human player) conquers Barcelona (Neutral Alliance, controlled by AI). The flag for the AI (Neutral Alliance) will set to "on", maybe no. 31. If the Neutral Alliance liberates the city, does the flag automatically goes to "off" or do I have to create a trigger.
For example:
@IF
CITYTAKEN
city=Barcelona
attacker=French
defender=Neutral Alliance
@THEN
flag
continuous
who=Neutral Alliance
state=On
flag=26
@ENDIF
;Barcelona liberated
@IF
CITYTAKEN
city=Barcelona
attacker=Neutral Alliance
defender=French
@THEN
flag
who=Neutral Alliance
state=Off
flag=26
@ENDIF
Do I need the last one?
What about when the flag for the Neutral Alliance is set to "on" at the start of the game and get to "off" when France conquers the city. Does the flag automatically get to "on" back when the Neutral Alliance liberates the city?
