Reusable functions
Player, Team and Global Function events that other actions call by name.
8 of 126 maps with captured rules use it.
Events to build
8 versions across 8 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 · 1 map
As built in CROSSES.
Event 5: Player Function (RED GUNS)
- Add Event · Trigger: Player Function · Name:
RED GUNS
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Spawn Loot From List · Items: AKM, 1911, CX4, .357 Magnum, M1014, UMP, S85, MK18, Px4, DT11, MP5, P90, AWP, M60, Matadors, RFB, FAL, Uzis, Silenced MP9, Tec9, SPR, SMAW Rocket Launcher · Value: 5
- Add Event · Trigger: Player Function · Name:
Event 6: Collect Item
- Add Event · Trigger: Collect ItemCalled when a player picks up a loot item.Source object: Collecting Player
- Selection: Collecting Player
- + Condition OR Variable Item ID (Event) Equal Gem Bars (item 73)
- Each condition stores its own AND/OR operator, shown on its line. The editor shows one operator button between each pair of conditions.
- + Action Call Player Function · Function: "RED GUNS" (Event 5)
- + Else Case
- Selection: Collecting Player
- + Condition Variable Item ID (Event) Equal Resources (item 37)
- + Action Call Player Function · Function: event id 15no Player Function event with this id
Version 2 · 1 map
As built in GHOST SHIP.
Event 9: Function (SOUND boo)
- Add Event · Trigger: Function · Name:
SOUND boo
This event is a generic function and can be called via the "Call Global Function" action. - Selection: All Players
- + Action Play Sound · Value: sound #23the editor's sound list order is not recoverable from the game files
- Add Event · Trigger: Function · Name:
Event 11: Timer (BOO)
- Add Event · Trigger: Timer · Name:
BOO
· Interval: 60the editor does not label this number's unitStart a timer which will execute your actions at a frequency determined by the expression on the right. - Selection: None
- + Action Call Function · Function: "SOUND boo" (Event 9)
- + Action Yield · Value: 1
- + Action Call Function · Function: "SOUND boo" (Event 9)
- Add Event · Trigger: Timer · Name:
Event 12: Timer (WAVE)
- Add Event · Trigger: Timer · Name:
WAVE
· Interval: 30the editor does not label this number's unitStart a timer which will execute your actions at a frequency determined by the expression on the right. - Selection: None
- + Action Call Function · Function: "INCOMING WAVE" (Event 13)
- + Action Call Function · Function: "WARNING SOUND" (Event 14)
- + Action Yield · Value: 2
- + Action Enable Fields · Value: 21
- + Action Enable Fields · Value: 6
- + Action Call Function · Function: "WAVE SOUND" (Event 16)
- + Action Disable Fields · Value: 22
- + Action Disable Fields · Value: 23
- + Action Disable Fields · Value: 24
- + Action Disable Fields · Value: 25
- + Action Yield · Value: 1
- + Action Disable Fields · Value: 21
- + Action Enable Fields · Value: 22
- + Action Disable Fields · Value: 23
- + Action Disable Fields · Value: 24
- + Action Disable Fields · Value: 25
- + Action Yield · Value: 1
- + Action Disable Fields · Value: 21
- + Action Disable Fields · Value: 22
- + Action Enable Fields · Value: 23
- + Action Disable Fields · Value: 24
- + Action Disable Fields · Value: 25
- + Action Yield · Value: 1
- + Action Disable Fields · Value: 21
- + Action Disable Fields · Value: 22
- + Action Disable Fields · Value: 23
- + Action Enable Fields · Value: 24
- + Action Disable Fields · Value: 25
- + Action Yield · Value: 1
- + Action Disable Fields · Value: 21
- + Action Disable Fields · Value: 22
- + Action Disable Fields · Value: 23
- + Action Disable Fields · Value: 24
- + Action Enable Fields · Value: 25
- + Action Yield · Value: 1
- + Action Disable Fields · Value: 25
- + Action Enable Fields · Value: 7
- + Action Yield · Value: 5
- + Action Disable Fields · Value: 7
- + Action Yield · Value: 2
- + Action Disable Fields · Value: 6
- Add Event · Trigger: Timer · Name:
Event 13: Function (INCOMING WAVE)
- Add Event · Trigger: Function · Name:
INCOMING WAVE
This event is a generic function and can be called via the "Call Global Function" action. - Selection: All Players
- + Action Show Toast · Value: 0 · Message:
INCOMING WAVE
- Add Event · Trigger: Function · Name:
Event 14: Function (WARNING SOUND)
- Add Event · Trigger: Function · Name:
WARNING SOUND
This event is a generic function and can be called via the "Call Global Function" action. - Selection: All Players
- + Action Play Sound · Value: sound #6the editor's sound list order is not recoverable from the game files
- Add Event · Trigger: Function · Name:
Event 16: Function (WAVE SOUND)
- Add Event · Trigger: Function · Name:
WAVE SOUND
This event is a generic function and can be called via the "Call Global Function" action. - Selection: All Players
- + Action Play Sound · Value: sound #15the editor's sound list order is not recoverable from the game files
- Add Event · Trigger: Function · Name:
Version 3 · 1 map
As built in MIRAGE.
Event 6: Player Function (RED GUNS)
- Add Event · Trigger: Player Function · Name:
RED GUNS
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Spawn Loot From List · Items: AKM, 1911, CX4, .357 Magnum, M1014, UMP, S85, MK18, Px4, DT11, MP5, P90, AWP, M60, Matadors, RFB, FAL, Uzis, Silenced MP9, Tec9, SPR, SMAW Rocket Launcher · Value: 5
- Add Event · Trigger: Player Function · Name:
Event 7: Player Function (PURPLE GUNS)
- Add Event · Trigger: Player Function · Name:
PURPLE GUNS
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Spawn Loot From List · Items: 1911, AKM, CX4, .357 Magnum, M1014, UMP, S85, MK18, Px4, DT11, MP5, P90, AWP, M60, Matadors, RFB, FAL, Uzis, Silenced MP9, Tec9, SPR, SMAW Rocket Launcher · Value: 3
- Add Event · Trigger: Player Function · Name:
Event 8: Collect Item
- Add Event · Trigger: Collect ItemCalled when a player picks up a loot item.Source object: Collecting Player
- Selection: Collecting Player
- + Condition OR Variable Item ID (Event) Equal Gem Bars (item 73)
- Each condition stores its own AND/OR operator, shown on its line. The editor shows one operator button between each pair of conditions.
- + Action Call Player Function · Function: "RED GUNS" (Event 6)
- + Else Case
- Selection: Collecting Player
- + Condition Variable Item ID (Event) Equal Resources (item 37)
- + Action Call Player Function · Function: "PURPLE GUNS" (Event 7)
Version 4 · 1 map
As built in POWERSTATION.
Event 1: Match Setup (0: Match Setup)
- Add Event · Trigger: Match Setup · Name:
0: Match Setup
Called once at the start of every new match. - Selection: All Players
- + Action Yield · Value: 7
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
- Add Event · Trigger: Match Setup · Name:
Event 2: Kill Enemy
- Add Event · Trigger: Kill EnemyCalled when a player kills an enemy player.Source object: Killer · Target object: Victim
- Selection: Killer
- + Condition Variable Weapon Used (Event) Equal Variable Current Weapon (Killer)
- + Action Add Score · Value: 1
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
Event 3: Player Joined
- Add Event · Trigger: Player JoinedCalled when a player joins an in-progress match. This is useful if you need to assign teams or roles to new players.Source object: Joining Player
- Selection: Joining Player
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
Event 4: Player Function (SET WEAPON)
- Add Event · Trigger: Player Function · Name:
SET WEAPON
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Set Weapon by Value · Items: AKM, MP5, MK18, P90, 1911, M1014, AWP, Uzis, M60, Tec9, S85, Px4, RFB, FAL, Silenced MP9, Matadors, SPR, AWP, Tec9, Cyberblade · Value: Variable Score (Selected Object)
- Add Event · Trigger: Player Function · Name:
Version 5 · 1 map
As built in RISE OF THE DRAGON - GUN GAME.
Create these first:
Buffs
Effect values are listed per stack ("Value at 1-Stack / 2-Stack ...").
- X-RAY #0Duration: 5.0 s · Notify · Icon colour #FFFFFF · Background colour #000000
- X-Ray Vision (see enemy outlines): 0.0
Event 1: Match Setup (0: Match Setup)
- Add Event · Trigger: Match Setup · Name:
0: Match Setup
Called once at the start of every new match. - Selection: All Players
- + Action Yield · Value: 7
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
- Add Event · Trigger: Match Setup · Name:
Event 2: Kill Enemy
- Add Event · Trigger: Kill EnemyCalled when a player kills an enemy player.Source object: Killer · Target object: Victim
- Selection: Killer
- + Condition Variable Weapon Used (Event) Equal Variable Current Weapon (Killer)
- + Action Add Score · Value: 1
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
Event 3: Player Joined
- Add Event · Trigger: Player JoinedCalled when a player joins an in-progress match. This is useful if you need to assign teams or roles to new players.Source object: Joining Player
- Selection: Joining Player
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
Event 4: Player Function (SET WEAPON)
- Add Event · Trigger: Player Function · Name:
SET WEAPON
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Set Weapon by Value · Items: 1911, .357 Magnum, Px4, Tec9, SMAW Rocket Launcher, Matadors, DT11, M1014, AKM, SMAW Rocket Launcher, CX4, UMP, MK18, MP5, SMAW Rocket Launcher, M60, RFB, Silenced MP9, P90, SMAW Rocket Launcher, FAL, S85, SPR, AWP, SMAW Rocket Launcher, Katana · Value: Variable Score (Selected Object)
- Add Event · Trigger: Player Function · Name:
Event 7: Timer
- Add Event · Trigger: Timer · Interval: 30the editor does not label this number's unitStart a timer which will execute your actions at a frequency determined by the expression on the right.
- Selection: All Players
- + Action Call Function · Function: "X-RAY" (Event 8)
Event 8: Function (X-RAY)
- Add Event · Trigger: Function · Name:
X-RAY
This event is a generic function and can be called via the "Call Global Function" action. - Selection: All Players
- + Action Apply Buff · Value: buff "X-RAY"
- + Action Play Sound · Value: sound #10the editor's sound list order is not recoverable from the game files
- Add Event · Trigger: Function · Name:
Version 6 · 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 |
| TGR CD TIMER | Global | Number | -1 | No |
| TGR CD TIMER SW | Global | Number | 0 | No |
| DB SW | Global | Number | 0 | No |
| GIVE BUFF SW | Global | Number | 0 | No |
| RM XRAY PLYR | Global | Number | 0 | No |
| RM BUFF START | Global | Number | 0 | No |
Event 1: Function (RESET GLOBAL)
- Add Event · Trigger: Function · Name:
RESET GLOBAL
This event is a generic function and can be called via the "Call Global Function" action. - Selection: None
- + Action Set Variable · Variable: TGR CD TIMER SW · Value: 0
- + Action Set Variable · Variable: PLAYER 1 · Value: Variable Null (Global)
- + Action Set Variable · Variable: PLAYER 2 · Value: Variable Null (Global)
- + Action Set Variable · Variable: DB SW · Value: 1
- + Action Set Variable · Variable: GIVE BUFF SW · Value: 0
- + Action Set Variable · Variable: RM XRAY PLYR · Value: 0
- + Action Set Variable · Variable: RM BUFF START · Value: 0
- + Action Set Variable · Variable: TGR CD TIMER · Value: -1
- Add Event · Trigger: Function · Name:
Event 6: Match Setup
- Add Event · Trigger: Match SetupCalled once at the start of every new match.
- Selection: None
- + Action Set Variable · Variable: PLAYER 1 · Value: Variable Null (Global)
- + Action Set Variable · Variable: PLAYER 2 · Value: Variable Null (Global)
- + Action Disable Fields · Value: 25
- + Action Call Function · Function: "RESET GLOBAL" (Event 1)
- + Action Call Function · Function: "RESET VAR" (Event 19)
- + Action Disable Fields · Value: 1
- + Action Disable Fields · Value: 2
Event 17: Trigger Function (RESER TRIG)
- Add Event · Trigger: Trigger Function · Name:
RESER TRIG
Function that can be called by a trigger object, such as a flight ring. The source object refers the player who initiated the interaction.Source object: Triggering Player - Selection: Triggering Player
- + Action Set Variable · Variable: PLAYER 1 · Value: Variable Null (Global)
- + Action Set Variable · Variable: PLAYER 2 · Value: Variable Null (Global)
- + Action Call Function · Function: "RESET VAR" (Event 19)
- + Action Call Player Function · Function: "RESET plyr" (Event 18)
- + Action Call Function · Function: "RESET GLOBAL" (Event 1)
- + Action Disable Fields · Value: 1
- + Action Disable Fields · Value: 2
- + Action Enable Fields · Value: 3
- Add Event · Trigger: Trigger Function · Name:
Event 18: Player Function (RESET plyr)
- Add Event · Trigger: Player Function · Name:
RESET plyr
· Variable: PlayerScoreThis event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: All Players
- + Action Respawn Player
- + Action Remove Player Item · Items: Resources · Value: 99999
- Add Event · Trigger: Player Function · Name:
Event 19: Function (RESET VAR)
- Add Event · Trigger: Function · Name:
RESET VAR
· Variable: PLAYER 1This event is a generic function and can be called via the "Call Global Function" action. - Selection: None
- + Action Set Variable · Variable: TGR CD TIMER SW · Value: 0
- + Action Set Variable · Variable: TGR CD TIMER · Value: -1
- + Action Set Variable · Variable: GIVE BUFF SW · Value: 0
- Add Event · Trigger: Function · Name:
Event 20: Player Revived
- Add Event · Trigger: Player RevivedCalled when a player is revived.Source object: Reviving Player · Target object: Revived Player
- Selection: Revived Player
- + Action Call Function · Function: "RESET VAR" (Event 19)
- + Action Call Function · Function: "RESET GLOBAL" (Event 1)
- + Action Remove Player Item · Items: Resources · Value: 999
Version 7 · 1 map
As built in SUNFLOWER CITY.
Event 1: Kill Enemy
- Add Event · Trigger: Kill EnemyCalled when a player kills an enemy player.Source object: Killer · Target object: Victim
- Selection: Killer
- + Condition Variable Weapon Used (Event) Equal Variable Current Weapon (Selected Object)
- + Action Add Score · Value: 1
- + Action Call Player Function · Function: "SET WEAPON" (Event 3)
Event 3: Player Function (SET WEAPON)
- Add Event · Trigger: Player Function · Name:
SET WEAPON
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Set Weapon by Value · Items: Px4, 1911, Tec9, .357 Magnum, UMP, Uzis, Silenced MP9, P90, CX4, AKM, MK18, MP5, M60, RFB, Matadors, M1014, DT11, FAL, SPR, AWP, S85, SMAW Rocket Launcher, Katana, Knife · Value: Variable Score (Selected Object)
- Add Event · Trigger: Player Function · Name:
Event 4: Match Setup (MATCH SETUP)
- Add Event · Trigger: Match Setup · Name:
MATCH SETUP
Called once at the start of every new match. - Selection: All Players
- + Action Yield · Value: 7
- + Action Call Player Function · Function: "SET WEAPON" (Event 3)
- Add Event · Trigger: Match Setup · Name:
Event 5: Player Joined (PLAYER JOINED)
- Add Event · Trigger: Player Joined · Name:
PLAYER JOINED
Called when a player joins an in-progress match. This is useful if you need to assign teams or roles to new players.Source object: Joining Player - Selection: Joining Player
- + Action Call Player Function · Function: "SET WEAPON" (Event 3)
- Add Event · Trigger: Player Joined · Name:
Version 8 · 1 map
As built in TRAIN [RMX].
Create these first:
Buffs
Effect values are listed per stack ("Value at 1-Stack / 2-Stack ...").
- GUN GAME #2 MOVEMENT SPEED 140%Permanent · Notify · Icon: E-Icon-Timer · Icon colour #008000 · Background colour #000000
- Movement Speed Multiplier: 1.4
Event 1: Match Setup (0: Match Setup)
- Add Event · Trigger: Match Setup · Name:
0: Match Setup
Called once at the start of every new match. - Selection: All Players
- + Action Apply Buff · Value: buff "GUN GAME"
- + Action Yield · Value: 7
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
- + Action Show Toast · Value: 0 · Message:
GUN GAME
- + Group
- Selection: All Players
- Comment:
GIVE BUILDS at begining
- + Action Give Player Item · Items: Resources · Value: 24
- Add Event · Trigger: Match Setup · Name:
Event 2: Kill Enemy
- Add Event · Trigger: Kill EnemyCalled when a player kills an enemy player.Source object: Killer · Target object: Victim
- Selection: Killer
- + Condition Variable Weapon Used (Event) Equal Variable Current Weapon (Killer)
- + Action Add Score · Value: 1
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
- + Action Give Player Item · Items: Resources · Value: 24
Event 3: Player Joined
- Add Event · Trigger: Player JoinedCalled when a player joins an in-progress match. This is useful if you need to assign teams or roles to new players.Source object: Joining Player
- Selection: Joining Player
- + Action Call Player Function · Function: "SET WEAPON" (Event 4)
- + Action Apply Buff · Value: buff "GUN GAME"
Event 4: Player Function (SET WEAPON)
- Add Event · Trigger: Player Function · Name:
SET WEAPON
This event is a function tied to a specific player and can be called via the "Call Player Function" action.Source object: Player - Selection: Player
- + Action Set Weapon by Value · Items: Px4, 1911, .357 Magnum, Tec9, UMP, Uzis, Silenced MP9, P90, MP5, CX4, MK18, FAL, RFB, AKM, M60, Matadors, M1014, DT11, S85, SPR, AWP, SMAW Rocket Launcher, Cyberblade, Knife · Value: Variable Score (Selected Object)
- Add Event · Trigger: Player Function · Name:
Seen in
- CROSSES GODS_CRAZYTRAIN · map page · walk
- GHOST SHIP WinterSoldier_EGY · map page · walk
- MIRAGE GODS_CRAZYTRAIN · map page · walk
- POWERSTATION cryptojoker69 · map page · walk
- RISE OF THE DRAGON - GUN GAME jellyace25_ECLIPSE · map page · walk
- SHOWDOWN GODS_CRAZYTRAIN · map page · walk
- SUNFLOWER CITY Kiki.80_BBB · map page · walk
- TRAIN [RMX] ArmsReach · map page · walk