Skip to content

Latest commit

 

History

History
120 lines (94 loc) · 3.15 KB

ModManager.md

File metadata and controls

120 lines (94 loc) · 3.15 KB

Mod Manager

Manager for extended events and properties

Status

In beta

Versions

Full version

Benefits

  • Have access to more features in Modding

Drawbacks

  • A "placeholder" bot will be spawned in your game, leading to small inaccuracy

Lite version

Benefits

  • Small-sized
  • High accuracy (because it only reads game info)

Drawbacks

Features

Notes

1. F means that it's only available on the Full Version

game.options extended options

Here is the list of options that are added:

  • map_id
  • map_name

Ship properties

ship.customization

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)

ship.hue

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

Extended game properties

game.team_stats (Only works with root_mode: "team")

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

Deathmatch mode

waiting
  • Fired when there are not enough players and players are waiting
  • Aditional fields: None
round_coutdown
  • 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)
round_started
  • 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
round_finished
  • Fired when the round has finsished
  • Additional fields:
Field Description
results Result of the round, an array of ships

Battle Royale

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