FFA Score Tracking

From EVERYWHERE wiki
Revision as of 16:47, 17 June 2024 by Chameleon (talk | contribs) (Protected "FFA Score Tracking" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This stamp implements automatic tracking of player kills and deaths for simple Free for All Deathmatch style of game, as well as some UI elements which can be shown/hidden by the game at any points using the provided events.

It will also fire an event when a player reaches the required number of kills to win, which can be also configured using the stamp variables.

Where to find it

Stamps > Public Stamps > FFA Score Tracking

Instructions

  • Customize Stamp Variables default values.
  • (Optional) Send any of the Input Events at any points using the Event Node to show/hide the Scoreboard or Top Players UI nodes.
  • (Optional) Link custom logic to On Received of the Output Events using Event Nodes.
  • (Optional) Access the Winner Player Id variable at any point to retrieve the player with the most number of kills at any point of the game.

Requirements

  • The stamp tracks player kills and deaths, but it does not set player factions. If you want players to be able to damage each other, you can do so by setting player factions directly using Set Faction Nodes or creating teams with the Team Node.
  • Some games might require certain UI elements to be hidden during certain stages (e.g. Top Players UI should not be visible during PreGame), so the stamp does not activate those on start. To show or hide them use the Input Events (detailed below).
  • In order to update the remaining time on the Top Players UI Node, the stamp provides an interface in the form of the Remaining Time advanced number variable node. One straightforward way to set it up is updating another instance of this advanced number from a Timer Node using the On Remaining Time Updated and Remaining Time events. Any updates to the Remaining Time variable will be read by the stamp and update the time on the UI.

Variables

Changeable Setting Option Description
Kills To Win Number Number of kills one player needs to get to trigger the Max Kills Reached output event.
Remaining Time Number Variable used to update the round time on the Top Players UI Node.
Winner Player Id Player Id Id for the player with the most kills at any given point.

Input Events

Event Name Description
ShowScoreboard Activates the scoreboard.
HideScoreboard Deactivates the scoreboard.
ShowTopPlayersUI Adds Top Players UI to the screen.
HideTopPlayersUI Removes Top Players UI from the screen.

Output Events

Event Name Description
MaxKillsReached Triggered when a player has reached the number of kills defined in the Kills to Win variable.