POP1 MAP ARCHIVEby CrosseyedSensei

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

NameScopeTypeDefault ValueReset Each Round
SPEED SWIndividualNumber0No

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
  1. Event 11: Player Variable Changed (SPEED EVENT)

    1. 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
    2. Selection: Variable Owner
    3. + Condition Variable SPEED SW (Selected Object) Greater Than 0
    4. + Action Apply Buff · Value: buff "SPEED"
    5. + Else Case
      1. Selection: Variable Owner
      2. + Condition Variable SPEED SW (Selected Object) Less Than or Equal 0
      3. + Action Set Variable · Variable: SPEED SW · Value: 0
      4. + Action Remove Buff · Value: buff "SPEED"

Version 2 · 6 maps

As built in BLUE, MUSHY 2, ROMULUS, SEAN0311, THE WHITE HOUSE, THE WITCHES.

Create these first:

Variables

NameScopeTypeDefault ValueReset Each Round
SPEED SWIndividualNumber0No
TIMERGlobalNumber0No

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
  1. Event 12: Player Variable Changed (SPEED EVENT)

    1. 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
    2. Selection: Variable Owner
    3. + Condition Variable SPEED SW (Selected Object) Greater Than 0
    4. + Action Apply Buff · Value: buff "SPEED"
    5. + Else Case
      1. Selection: Variable Owner
      2. + Condition Variable SPEED SW (Selected Object) Less Than or Equal 0
      3. + Action Set Variable · Variable: SPEED SW · Value: 0
      4. + Action Remove Buff · Value: buff "SPEED"
  2. Event 13: Global Variable Changed (ACTION)

    1. 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.
    2. Selection: None
    3. + Condition Variable TIMER (Global) Equal 3
    4. + Action Enable Fields · Value: 3
    5. + Action Disable Fields · Value: 1
    6. + Action Disable Fields · Value: 2
    7. + Action Set Variable · Variable: TIMER · Value: 0
    8. + Else Case
      1. Selection: None
      2. + Condition Variable TIMER (Global) Equal 1
      3. + Action Disable Fields · Value: 3
      4. + Action Enable Fields · Value: 1
      5. + Action Disable Fields · Value: 3
      6. + Else Case
        1. Selection: None
        2. + Condition Variable TIMER (Global) Equal 2
        3. + Action Disable Fields · Value: 3
        4. + Action Disable Fields · Value: 1
        5. + Action Enable Fields · Value: 2

Version 3 · 1 map

As built in SHOWDOWN.

Create these first:

Variables

NameScopeTypeDefault ValueReset Each Round
PLAYER 1GlobalObject (Player)0No
PLAYER 2GlobalObject (Player)0No
START SWGlobalNumber0No

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
  1. Event 10: Global Variable Changed (BEGIN)

    1. 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.
    2. Selection: None
    3. + Condition Variable START SW (Global) Equal 1
    4. + Action Enable Fields · Value: 1
    5. + Action Enable Fields · Value: 2
    6. + Action Disable Fields · Value: 3
    7. + Else Case
      1. Selection: None
      2. + Condition Variable START SW (Global) Equal 0
      3. + Action Enable Fields · Value: 3
      4. + Action Disable Fields · Value: 1
      5. + Action Disable Fields · Value: 2
  2. Event 23: Global Variable Changed

    1. 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.
    2. Selection: All Players
    3. + Condition Variable START SW (Global) Equal 0
    4. + Action Remove Buff · Value: buff "XRAY"
    5. + Else Case
      1. Selection: All Players
      2. + Condition Variable START SW (Global) Equal 1
      3. + Condition AND Variable Object (Selected Object) Not Equal Variable PLAYER 1.Object (Global)
      4. + Condition AND Variable Object (Selected Object) Not Equal Variable PLAYER 2.Object (Global)
      5. + Action Apply Buff · Value: buff "XRAY"

Seen in