Skip to content

StatReset.js

kyleady edited this page Jun 30, 2016 · 3 revisions

Purpose

Allows the gm to quickly reset every stat and remove all status markers of every selected character. This is often used when the characters take a long narrative rest, allowing them to recover any Damage, temporary Toughness loss, Fatigue, or status effects they may have incurred earlier. This can also be used to heal NPCs so that you can duplicate a damaged one and quickly heal the duplicate.

Usage

!ResetToken
Checks if a selected token is linked to a character. If so, it will reset bar2(blue) and bar3(red) to their maximums and it will reset bar1 (green) to 0 as I use it to represent Fatigue. It will also go to the linked character sheet and reset every attribute to its max, unless the attribute is named Fatigue. It will reset Fatigue to 0.

Even though certain attributes may be linked to the character sheet, and reseting them on the character sheet will reset them on the token, the double work accounts for when the bars are not linked to any attributes.

Requirements

None. This script will function for any game system, even if you do not have an attribute named Fatigue. However, in that case you should edit the code so that it resets bar1(green) to its maximum instead of 0.

Future Work

To retain a constant syntax, I would like to move over to !TokenReset so as to be similar to !FateReset.

Clone this wiki locally