Thread Tools
Old September 12, 2000, 05:13   #1
PurpleWyrm
Chieftain
 
PurpleWyrm's Avatar
 
Local Time: 08:09
Local Date: October 31, 2010
Join Date: May 2000
Location: Western Australia
Posts: 41
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.
PurpleWyrm is offline  
Old September 12, 2000, 07:29   #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
Change to lowercase all STATE directives in your FLAG and CHECKFLAG statements. In other words, change On and Off to on and off.
William Keenan is offline  
Old September 13, 2000, 05:09   #3
PurpleWyrm
Chieftain
 
PurpleWyrm's Avatar
 
Local Time: 08:09
Local Date: October 31, 2010
Join Date: May 2000
Location: Western Australia
Posts: 41
Ah, I'm doing something very stupid. Thanks
PurpleWyrm 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