React when a variable changes
Events that run when a player, team or global variable changes, usually to switch a buff on or off.
21 of 126 maps with captured rules use it.
Events to build
3 versions across 21 maps. The most used comes first; each is complete, with the functions, buffs, roles and variables it needs. The number in a function call matches the heading of that event in this list.
Version 1 · 14 maps
As built in AFTERMATH-LIGHT VS DARK, BI-POLAR, CANDLE MAGIC, FLASH, FORTRESS, HIGHER, LA LA LA, LADIES VS GENTS, LIGHT VS DARK, ROTTEN RAPPIDS, SPORE WAR, STACKED, SURVIVE, THOR CITY.
Create these first:
Variables
| Name | Scope | Type | Default Value | Reset Each Round |
|---|---|---|---|---|
| SPEED SW | Individual | Number | 0 | No |
Buffs
Effect values are listed per stack ("Value at 1-Stack / 2-Stack ...").
- SPEED #3Permanent · Icon colour #FFFFFF · Background colour #000000
- Movement Speed Multiplier: 5.0
Event 11: Player Variable Changed (SPEED EVENT)
- Add Event · Trigger: Player Variable Changed · Name:
SPEED EVENT
· Variable: SPEED SWCalled when the given player varible changes. Select which variable you want to monitor using the dropdown on the right.Source object: Variable Owner - Selection: Variable Owner
- + Condition Variable SPEED SW (Selected Object) Greater Than 0
- + Action Apply Buff · Value: buff "SPEED"
- + Else Case
- Selection: Variable Owner
- + Condition Variable SPEED SW (Selected Object) Less Than or Equal 0
- + Action Set Variable · Variable: SPEED SW · Value: 0
- + Action Remove Buff · Value: buff "SPEED"
- Add Event · Trigger: Player Variable Changed · Name:
Version 2 · 6 maps
As built in BLUE, MUSHY 2, ROMULUS, SEAN0311, THE WHITE HOUSE, THE WITCHES.
Create these first:
Variables
| Name | Scope | Type | Default Value | Reset Each Round |
|---|---|---|---|---|
| SPEED SW | Individual | Number | 0 | No |
| TIMER | Global | Number | 0 | No |
Buffs
Effect values are listed per stack ("Value at 1-Stack / 2-Stack ...").
- SPEED #3Permanent · Icon colour #FFFFFF · Background colour #000000
- Movement Speed Multiplier: 5.0
Event 12: Player Variable Changed (SPEED EVENT)
- Add Event · Trigger: Player Variable Changed · Name:
SPEED EVENT
· Variable: SPEED SWCalled when the given player varible changes. Select which variable you want to monitor using the dropdown on the right.Source object: Variable Owner - Selection: Variable Owner
- + Condition Variable SPEED SW (Selected Object) Greater Than 0
- + Action Apply Buff · Value: buff "SPEED"
- + Else Case
- Selection: Variable Owner
- + Condition Variable SPEED SW (Selected Object) Less Than or Equal 0
- + Action Set Variable · Variable: SPEED SW · Value: 0
- + Action Remove Buff · Value: buff "SPEED"
- Add Event · Trigger: Player Variable Changed · Name:
Event 13: Global Variable Changed (ACTION)
- Add Event · Trigger: Global Variable Changed · Name:
ACTION
· Variable: TIMERCalled when the given global variable changes. Select which variable you want to monitor using the dropdown on the right. - Selection: None
- + Condition Variable TIMER (Global) Equal 3
- + Action Enable Fields · Value: 3
- + Action Disable Fields · Value: 1
- + Action Disable Fields · Value: 2
- + Action Set Variable · Variable: TIMER · Value: 0
- + Else Case
- Selection: None
- + Condition Variable TIMER (Global) Equal 1
- + Action Disable Fields · Value: 3
- + Action Enable Fields · Value: 1
- + Action Disable Fields · Value: 3
- + Else Case
- Selection: None
- + Condition Variable TIMER (Global) Equal 2
- + Action Disable Fields · Value: 3
- + Action Disable Fields · Value: 1
- + Action Enable Fields · Value: 2
- Add Event · Trigger: Global Variable Changed · Name:
Version 3 · 1 map
As built in SHOWDOWN.
Create these first:
Variables
| Name | Scope | Type | Default Value | Reset Each Round |
|---|---|---|---|---|
| PLAYER 1 | Global | Object (Player) | 0 | No |
| PLAYER 2 | Global | Object (Player) | 0 | No |
| START SW | Global | Number | 0 | No |
Buffs
Effect values are listed per stack ("Value at 1-Stack / 2-Stack ...").
- XRAY #1Permanent · Icon colour #FFFFFF · Background colour #000000
- X-Ray Vision (see enemy outlines): 0.0
- Add Additional Buff Effect · Silence (mute footsteps and flight audio): 0.0
Event 10: Global Variable Changed (BEGIN)
- Add Event · Trigger: Global Variable Changed · Name:
BEGIN
· Variable: START SWCalled when the given global variable changes. Select which variable you want to monitor using the dropdown on the right. - Selection: None
- + Condition Variable START SW (Global) Equal 1
- + Action Enable Fields · Value: 1
- + Action Enable Fields · Value: 2
- + Action Disable Fields · Value: 3
- + Else Case
- Selection: None
- + Condition Variable START SW (Global) Equal 0
- + Action Enable Fields · Value: 3
- + Action Disable Fields · Value: 1
- + Action Disable Fields · Value: 2
- Add Event · Trigger: Global Variable Changed · Name:
Event 23: Global Variable Changed
- Add Event · Trigger: Global Variable Changed · Variable: START SWCalled when the given global variable changes. Select which variable you want to monitor using the dropdown on the right.
- Selection: All Players
- + Condition Variable START SW (Global) Equal 0
- + Action Remove Buff · Value: buff "XRAY"
- + Else Case
- Selection: All Players
- + Condition Variable START SW (Global) Equal 1
- + Condition AND Variable Object (Selected Object) Not Equal Variable PLAYER 1.Object (Global)
- + Condition AND Variable Object (Selected Object) Not Equal Variable PLAYER 2.Object (Global)
- + Action Apply Buff · Value: buff "XRAY"
Seen in
- AFTERMATH-LIGHT VS DARK GODS_BADBAR · map page · walk
- BI-POLAR GODS_TrashPandaKiller · map page · walk
- BLUE GODS_Quietowl · map page · walk
- CANDLE MAGIC GODS_GoodWitch · map page · walk
- FLASH GODS_PITDEVIL · map page · walk
- FORTRESS GODS_PutangFreyja · map page · walk
- HIGHER GODS_TrashPandaKiller · map page · walk
- LA LA LA GODS_TrashPandaKiller · map page · walk
- LADIES VS GENTS GODS_PutangFreyja · map page · walk
- LIGHT VS DARK GODS_BADBAR · map page · walk
- MUSHY 2 GODS_PutangFreyja · map page · walk
- ROMULUS GODS_SKBLong · map page · walk
- ROTTEN RAPPIDS GODS_KatieCxX · map page · walk
- SEAN0311 GODS_Sean0311 · map page · walk
- SHOWDOWN GODS_CRAZYTRAIN · map page · walk
- SPORE WAR AF1_PressGreen · map page · walk
- STACKED GODS_TrashPandaKiller · map page · walk
- SURVIVE GODS_GoodWitch · map page · walk
- THE WHITE HOUSE GODS_OSPREY.kat · map page · walk
- THE WITCHES GODS_PutangFreyja · map page · walk
- THOR CITY GODS_THOR · map page · walk