Flags in Events

civ2units

Emperor
Joined
Feb 1, 2009
Messages
1,182
Location
Somewhere in nowhere
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? :)
 
Yes, to turn off that flag you need the second event.
 
Don't forget to add "continuous" parameter to the second event.
 
Thanks guys. :goodjob:

The basic structure of the event file is now ready. I´m currently filling it with special events for France. Luckily I´ve enough memory remaining for the events. At the end of the report.txt I can read how much memory is still available.

Here´s a little screenshot from Revolutionary France in 1793... :)

attachment.php
 

Attachments

  • Rev_France_Screen.png
    Rev_France_Screen.png
    348.7 KB · Views: 209
Back
Top Bottom