 |
|  |
 |
|
Harris
|
|
SDC #3
Apr 2000 time: 05:13
|
|
After several weeks of getting ToT flags to work in my scenario and failing I came to the conclusion that there is a logic bug in the events parser.
When using a CHECKFLAG statement with the COUNT parameter the trigger returns a true condition when the count is equal to or greater than the COUNT. It is only supposed to return a true when the number of FLAGS in the MASK is equal to the COUNT.
For example, if you have two statements where one is a CHECKFLAG, COUNT=1 and other is a CHECKFLAG, COUNT=2. If only one FLAG is ON then only the COUNT=1 trigger returns a true. However, if both FLAGS are ON then both statements return a true, not just the COUNT=2 statement. Which is, of course, the bug
This hold true no matter how many flags you are testing. If ten FLAGS in the MASK are ON and you are checking for a COUNT of any number less then ten it will still return a true result.
|
|
|  |
 |
|  |
 |
|
Harris
|
|
SDC #3
Apr 2000 time: 05:13
|
|
Miner, don't let the settler thing in my profile fool you. Harris is my SDC#3 ID. I'm using it instead of my real handle to maintain my anonymity concerning the contest.
Xin Yu, that is of course a valid work around. The problem with it is however, that it uses both conditions of the @IF leaving no room for another trigger such as UNITKILLED or CITYTAKEN, etc. in the event structure.
In anticipation of your counter-point, Xin; yes, you could have flags set by using UNITKILLED and CITYTAKEN statements and then include those flags in the CHECKFLAG statement. The problem with that logic is that one flag would need to be dedicated to each condition. In other words, every time you wanted to use a UNITKILLED it would use up one of your flags. With only 32 flags per civ you would run out real fast.
In anticipation of your counter-counter-point, using the flag sets of the barbarians and other civs that are not active in the scenario to extend the number of flags available sounds like a good idea, I'm glad you brought it up. I tried it and found, much to my chagrin, that the game ignores any CHECKFLAG statements that involve civilizations that are not active in the scenario.
[This message has been edited by Harris (edited August 24, 2000).]
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|