Changes

Jump to navigation Jump to search
m
Line 35: Line 35:  
| Get whether at least one of the listed game state queries match, where each argument is a query. For example, <code>ANY "SEASON Winter" "SEASON Spring, DAY_OF_WEEK Friday"</code> is true if (a) it's winter or (b) it's a spring Friday. You can list any number of queries to check.
 
| Get whether at least one of the listed game state queries match, where each argument is a query. For example, <code>ANY "SEASON Winter" "SEASON Spring, DAY_OF_WEEK Friday"</code> is true if (a) it's winter or (b) it's a spring Friday. You can list any number of queries to check.
 
|}
 
|}
 +
 +
You can nest ANY tokens inside of ANY tokens, but you're likely to get yourself into quote escaping madness if you try. Instead, approach as Sum of Products.
 +
 +
Here's an example.
 +
 +
<samp> "ANY \"LOCATION_NAME BathHouse_Pool\" \"LOCATION_NAME BathHouse_MensLocker\" \"LOCATION_NAME BathHouse_WomensLocker\" \"LOCATION_NAME Beach, WEATHER Sun Wind, SEASON Summer\" \"EVENT_ID summer5, {{HasMod|contains=spacechase0.SurfingFestival}}\""</samp>
 +
 +
Broken down, this means:
 +
 +
* ANY of the following locations: BathHouse_Pool, BathHouse_MensLocker, BathHouse_WomensLocker.
 +
* The location Beach but only if it's sunny or windy, and it's summer
 +
* The event (in this case festival) summer5 is active, and spacechase0.SurfingFestival is installed, as the <samp>{{HasMod|contains=spacechase0.SurfingFestival}}</samp> token will either resolve to true or false, which are valid tokens.
 +
 +
Remember: you can token inside GSQ!
    
===Date & time===
 
===Date & time===
528

edits

Navigation menu