Script:wfrp2e-api
From Roll20 Wiki
WFRP2E API by Havoc
This set of functions and roll templates support many common features found in a WFRP2E game. Some items are customizable to your particular game.
Roll Templates and Dice Features
Havoc has provided templates for many Combat, Parry, Success, Failure, and Magic rolls, including Ulric's Fury, Initiative, and Fortune Re-rolls. All executable from the character sheet, calculated automatically or performed from the roll template!
Customizations
The API may be customized from the Campaign Settings to suit your play style or home rules. Particularly, one can customize Combat, Parry and Skill critical Success and Failure "break points" or turn them off all together. Find the following sections in the API script and edit per the comments or to suit your needs:
var critSucCombat = 1; //set to 0 to turn off crit success var critFailCombat = 96; //set to 101 to turn off crit failure ... var critSucParry = 1; //set to 0 to turn off crit success var critFailParry = 96; //set to 101 to turn off crit failure ... var critSucSkill = 1; //set to 0 to turn off crit success var critFailSkill = 96; //set to 101 to turn off crit failure