Line 40: |
Line 40: |
| Here's an example. | | Here's an example. |
| | | |
− | <pre> "ANY \"LOCATION_NAME Here BathHouse_Pool\" \"LOCATION_NAME Here BathHouse_MensLocker\" \"LOCATION_NAME Here BathHouse_WomensLocker\" \"LOCATION_NAME Here Beach, WEATHER Sun Wind, SEASON Summer\" \"EVENT_ID festival_summer5, {{HasMod|contains=spacechase0.SurfingFestival}}\""</pre> | + | <pre> "ANY \"LOCATION_NAME Here BathHouse_Pool\" \"LOCATION_NAME Here BathHouse_MensLocker\" \"LOCATION_NAME Here BathHouse_WomensLocker\" \"LOCATION_NAME Here Beach, WEATHER Sun Wind, SEASON Summer\" \"IS_EVENT festival_summer5, {{HasMod|contains=spacechase0.SurfingFestival}}\""</pre> |
| | | |
| Broken down, this means: | | Broken down, this means: |
Line 112: |
Line 112: |
| ! effect | | ! effect |
| |- | | |- |
− | | <samp>EVENT_ID {{t|event ID}}+</samp> | + | | <samp>IS_EVENT</samp> |
− | | Whether one of the given [[Modding:Event data|event]] IDs are currently playing. | + | | Whether the player is viewing any [[Modding:Event data|event]] or attending any active festival. This doesn't cover passive festivals like the [[Night Market]]. |
− | | + | |- |
− | This also works for non-passive festivals, which have IDs in the form <samp>festival_{{t|season}}{{t|day}}</samp>. For example, <samp>festival_spring13</samp> for the [[Egg Festival]].
| + | | <samp>IS_EVENT {{t|event ID}}+</samp> |
| + | | Whether the player is viewing an [[Modding:Event data|event]] or attending an active festival whose ID matches one of the specified {{t|event ID}} values. Festivals have IDs in the form <samp>festival_{{t|season}}{{t|day}}</samp> (like <samp>festival_spring13</samp> for the [[Egg Festival]]). |
| |} | | |} |
| | | |