Manager for extended events and properties
In beta
- Have access to more features in Modding
- A "placeholder" bot will be spawned in your game, leading to small inaccuracy
- Small-sized
- High accuracy (because it only reads game info)
- Have access to fewer features than the Full Version
1. F means that it's only available on the Full Version
Here is the list of options that are added:
map_id
map_name
An object with these fields:
Field | Description |
---|---|
badge | The badge that the player uses (or null if the player doesn't have ECP) |
skin | The skin uses by the player |
laser | laser skin |
hue | Initial hue (hue when player first appeared in-game) |
Current hue of the ship, a number (0->359)
Deathmatch-mode only field F
Note: Those fields only appears after the player finished their first round
Field | Description |
---|---|
rounds | Rounds played |
wins | Total wins |
dm_stats | Stats (deaths, kills) of the player for ever round, each item is an object with 2 fields kills and deaths |
Same as game.options.teams
(an array), but each item contains more fields:
Field | Description |
---|---|
level | Team base's level |
crystals | Current team base's crystals |
max_crystals | Maximum crystals of team's base in the current level |
open | If the team is available for joining or locked |
best_killer F | Team's best killer |
best_healer F | Team's best healer |
best_contributor F | Team's best contributor |
Example:
this.tick = function (game) {
if (game.step % 60 === 0) { // make sure that this is done only once per second
for (let team of game.team_stats) {
if (team.best_killer != null) team.best_killer.instructorSays("Congratulations! You are the best killer on your team!")
}
}
}
Extended events F
- Fired when there are not enough players and players are waiting
- Aditional fields: None
- Fired when the round is on countdown phase (choose ship screen before round start)
- Additional fields:
Field | Description |
---|---|
map_id | Map pattern ID for this round |
ships | Ships being chosen in this round |
time | Countdown time (in ticks) |
- Fired when the round has started
- Additional fields:
Field | Description |
---|---|
map_id | Map pattern ID for this round |
ships | Ships being chosen in this round |
- Fired when the round has finsished
- Additional fields:
Field | Description |
---|---|
results | Result of the round, an array of ships |
Event Name | Description | Additional fields |
---|---|---|
game_starting | The game is about to start (Repulsive fields started activating) | None |
game_started | The game has started | None |