Skip to content
Karl the Pagan edited this page Feb 11, 2017 · 3 revisions

Reputation: Friend or Foe identification

Constants

These values are available inside the reputation task.

  • MY_SCORE: 1000

The default score for the player.

  • WHITELIST_SCORE: 200

The default score for players on the whitelist.

  • ALLY: 100

Score required to be considered an ally.

  • NEUTRAL: 1

Score required to not be considered hostile.

  • NPC_SCORE: -200

Default score for NPC usernames.

Parameters

  • PLAYER_WHITELIST parameter

Array of player names who will have a default score of 200. The default value is the membership list of the OCS Alliance.

Memory Commands

  • Task.reputation.score(<username>)

Task.reputation.score('cyberblast') returns 200 by default, or 0 after issuing the following set command.

  • Task.reputation.setScore(<username>, <absolute score>) command

Sets the absolute score for the username.

Task.reputation.setScore('cyberblast',0) will make cyberblast appear in the Room.prototype.hostiles.

Task.reputation.setScore('cyberblast',undefined) will restore cyberblast to his default score.