Skip to content

Cohesion.js

kyleady edited this page Jun 29, 2016 · 6 revisions

Purpose

Cohesion.js allows players and the gm to quickly manage and check of the cohesion of the Squad without opening any particular handout. These functions allow the players to quickly spend and restore cohesion points as they activate Squad Mode Abilities, take Cohesion Damage, and recover lost Cohesion. Further, they can quietly check on the current cohesion of the Squad.

The functions tailored to the gm allow them to swiftly set the cohesion at the beginning of the mission with a command.

Usage

!Cohesion
The system whispers to the user the current cohesion out of the max cohesion. (Players and GM).

!Cohesion += <x>
Adds x cohesion to the current cohesion, publicly reports how much cohesion was added, and publicly reports the final cohesion amount. (GM only).

  • If this would take the current cohesion above max cohesion, it sets the resulting cohesion to max cohesion and publicly alerts everyone.
  • If this would take the current cohesion below zero, it will privately whisper to the user that there isn't enough cohesion. The cohesion is not modified and no public reports are made.
  • If this would take the current cohesion to zero, it publicly reports that Squad Mode has been broken.

!Cohesion += <x>
As above but with subtraction. (GM only).

!Cohesion = <x>
Sets the current squad cohesion. Privately whispers the result to the GM. (GM only).

!MaxCohesion = <x>
Sets the current and max squad cohesion to this value. Publicly announces the current and max cohesion. (GM only).

Requirements

  • Must have a Character Sheet named "Damage Catcher".
  • That Character Sheet must have an Attribute named "Cohesion"

Future Work

For a standardized syntax, !Cohesion should be an action. In this case it would be a Cohesion check (/r D10 <= Cohesion).

Privately viewing the current Cohesion should be moved over to !Cohesion ? and !Cohesion ?=

I would like to create an ObjectMath.js that stores a library of functions for handling the operators +=, -=, =, /=, =, ?, ?=, ?+, ?-, ?, ?/ for Attributes like Fate, Cohesion, Dam, Pen, Felling, Hits, etc.

Later on I plan to store all of the chat:message events into one script. This way players can be alerted if they misspell a command or simply use the wrong API command.

Clone this wiki locally