-
Notifications
You must be signed in to change notification settings - Fork 0
StatRoll.js
Allows the players to roll against their characteristics, adding in modifiers, with one API command in the Chat Window, showing the results in terms of successes rolled and potential Unnatural Successes to be added. It also includes a shortcut API Command for the general use API Command within StatHandler.js.
![gm] <characteristic>[(+|-)<modifier>] (Players and GM) Rolls a D100 against the named stat for each selected character, determining the number of successes. The input allows the player to specify the following
- gm - Whether or not this roll is to be privately sent to the gm. If so, the result is only known to the gm.
- stat name - Which stat should the selected character roll against? The currently supported stat names are
- WS
- BS
- S
- T
- Ag
- Pr
- Wp
- It
- Fe
- Insanity
- Corruption
- Renown
- Crew
- Population
- Moral
- Profit Factor
- modifier - Adds or subtracts the given modifier to the roll.
The output is in the form of a Roll Template. The title of the Roll Template includes the name of the stat being rolled and the name of the character rolling the Stat. The two items in the Roll Template are Successes and Unnatural. Successes is determined by the following formula:
Successes = (Stat + Modifier - D100)/10
Technically, Math.floor() should be used on the result, but my players and I prefer to see how close they came to not passing the check. Successes lists the number of successes achieved on the roll. If the number is negative then it lists the number of Failures incurred on the roll.
Warning: The ruleset of Rogue Trader was used for determining the number of successes and failures on a Characteristic/Skill Test.
The number of additional successes (on Successful tests) from Unnatural Characteristics are given in Unnatural. Unnatural is determined by the following formula:
Unnatural = Math.ceil(Unnatural Stat/2)
The rule set of Black Crusade was used for determining the effect of Unnatural Characteristics on Characteristic/Skill Tests. It may seem odd using two different rulesets to determine the number of successes on a roll. I chose these rules as they interacted the most naturally with roll templates. Further, there is no easy conversion for creatures from Black Crusade that have that version of Unnatural Characteristics, while it is a simple matter to convert pre-Black Crusade Unnatural Characteristics.
Note that Profit Factor is a partyStat, meaning that the same Profit Factor will be rolled against no matter who is selected.
![max] <characteristic> <operator> [<modifier sign> <modifier absolute value>] (Players and GM)
This is an alternate API Command for StatHandler.js that does not require you to include the word attr in your API Command to signify that this is an attribute you are working with. However, it is limited to the following attributes:
- WS
- BS
- S
- T
- Ag
- It
- Wp
- Per
- Fe
- Fate
- Insanity
- Corruption
- Renown
- Crew
- Wounds
- Fatigue
- Population
- Moral
- Hull
- Void Shields
- Turret
- Manoeuvrability
- Detection
- Armour_H
- Armour_RA
- Armour_LA
- Armour_B
- Armour_RL
- Armour_LL
- Armour_F
- Armour_S
- Armour_R
- Armour_P
- Armour_A
- Profit Factor
Note that Profit Factor is a partyStat, meaning that the same Profit Factor will be edited no matter who is selected.
Profit Factor must exist somewhere in the campaign.