generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
API
Chas edited this page Mar 31, 2024
·
1 revision
Generates damage scrolling text for a passed-in list of damage values.
-
dmgList
: Array of objects containing damage type and value. -
targetIDs
: Array of target token IDs.
game.pf2eRPGNumbers.damageNumbers.generate([{type:'bludgeoning', value:'32'}], [game.user.character?.id]}]);
Extracts the damage list from a message.
-
msg
: Message object containing rolls.
game.pf2eRPGNumbers.damageNumbers.getDamageList(msg);
Generates a finishing move animation.
-
text
: Text to display in the finishing move animation.
game.pf2eRPGNumbers.finishingMove.generate("Levin Ballet 10000");
Generates scrolling text for a roll.
-
roll
: Object containing roll details. -
whisper
: Array of user IDs to whisper the roll to. (default: []) -
type
: Type of roll (default: "attack-roll"). -
outcome
: Outcome of the roll (default: "none"). -
token
: Token object.
game.pf2eRPGNumbers.rollNumbers.generate({roll: new Roll('1d20').roll(),token: game.user.character.token});
Creates a critical animation based on the provided roll details.
-
token
: Token object triggering the animation. -
critType
: Type of critical animation to display (default: "persona") ("persona" | "fire-emblem").
game.pf2eRPGNumbers.critAnimation.generate(game.user.character.token, "fire-emblem");
Performs a token attack animation.
-
tokenObject
: Object representing the attacking token. -
targetTokenObject
: Object representing the target token.
game.pf2eRPGNumbers.critAnimation.generate(game.user.character.token, game.user.targets.first());