Thread Tools
Old August 31, 2000, 05:10   #1
a_bates
Chieftain
 
Local Time: 00:09
Local Date: October 31, 2010
Join Date: Jul 2000
Location: Britain
Posts: 66
When are flags checked
If I use a FLAG action in my events file to set a flag when is an event that has a CHECKFLAG trigger on that flag going to be triggered. As far as I can see they occur during the A.I.'s turn. Why is this?

eg

@IF
UNITKILLED
unit=settler
attacker=Russians
defender=English
@THEN
FLAG
continuous
who=Russians
state=On
flag=0
@ENDIF

@IF
CHECKFLAG
who=Russians
flag=0
state=On
@THEN
JUSTONCE
TEXT
The Russians sink to murdering innocent civilians!
ENDTEXT
@ENDIF

The text of the second event does not appear until the A.I's turn. Why is the second event not triggered as soon as the flag is set. Can anyone please explain what the exact logic and timing is in all these events.

Thanks in advance,
Adrian
a_bates is offline  
Old August 31, 2000, 19:12   #2
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 19:09
Local Date: October 30, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
Checkflag statements that are not connected to other trigger events, such as unitkilled, seem to be resolved at the end of the turn. End of the turn being after all civs have moved.
William Keenan is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 20:09.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team