Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

How many flags?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> WarPlan >> MODS and Scenarios >> How many flags? Page: [1]
Login
Message << Older Topic   Newer Topic >>
How many flags? - 4/21/2020 1:10:12 AM   
n0b0dy2

 

Posts: 5
Joined: 4/2/2020
Status: offline
The Scenario Modding and Creation guide mentions "game event flag" values, as both test condition (if_flag=) and action effect (flag=).
I gather that these can be used as "or" gates, where any of a number of event script fragments can evaluate to set a given flag.

Each flag gets a number.
- What is the valid range of numbers available in a script?
- Are any flags already in use (hard coded) in the engine?
Post #: 1
RE: How many flags? - 4/21/2020 3:24:48 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
0-31

None are used in game.

The flags are just true false and saved with the scenario.

< Message edited by Alvaro Sousa -- 4/21/2020 3:26:16 PM >


_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to n0b0dy2)
Post #: 2
RE: How many flags? - 4/21/2020 3:32:19 PM   
n0b0dy2

 

Posts: 5
Joined: 4/2/2020
Status: offline
OK, 32 bits. These are latch-once settings, with no way to clear/reset them (?)

(in reply to AlvaroSousa)
Post #: 3
RE: How many flags? - 4/21/2020 6:09:57 PM   
PanzerMike


Posts: 888
Joined: 4/30/2006
Status: offline
So, it works like this:
Flag=13 (flag 13 is now true)
If_flag=13 (returns true now)

There is no possibility to flip flag 13 back to false.

Correct?

(in reply to n0b0dy2)
Post #: 4
RE: How many flags? - 4/22/2020 3:21:28 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
Correct use of flag.

No you can't reset it. Generally you shouldn't have to. SC has the same system of flag events. I will say I copied it from them.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to PanzerMike)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> WarPlan >> MODS and Scenarios >> How many flags? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.953