| Latest version | 1.0.0 |
|---|---|
| Minimum Core | 9 |
| Compatible Core | 9 |
| Last updated | 4 years ago |
| Created | 4 years ago |
| Authors |
|
| Languages |
English |
| Systems |
A5e |
| Dependencies |
Level Up: Advanced 5th Edition (Official) |
| Project source | Project URL |
A small module to provide helper functions for use in the A5E System.
The following functions can be accessed with the namespace A5EUtils.
fullObject is set to true.getDamageImmunities(token: Token): Array --> Returns an array of damage immunities for a token.
getDamageResistances(token: Token): Array --> Returns an array of damage resistances for a token.
getDamageVulnerabilities(token: Token): Array --> Returns an array of damage vulnerabilities for a token.
getLanguages(token: Token): Array --> Returns the known languages for a token.
getSenses(token: Token): Array --> Returns an array of senses for a token.
hasCondition(token: Token, condition: String): Boolean --> Checks if a token has a specified condition (The condition string is case insensitive).
hasSpellPoints(token: Token): Boolean --> Checks if a token has spell points.
hasSpellSlots(token: Token, spellLevel: Number = null): Boolean --> Checks if a token has spell slots. Can optionally check if the token has spell slots of a certain level.
isBloodied(token: Token): Boolean --> Checks if the token is below half hp.
isWounded(token: Token): Boolean --> Checks if the token is below max hp.
isSpellCaster(token: Token): Boolean --> Checks if the token is a spell caster.
isUnconscious(token: Token): Boolean --> Checks if the token is unconscious via conditions or if its hp is 0.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: a5e-utility-helpers or copy its manifest URL:
And paste it to the input box at the bottom of your window.

You can install this package directly to your Forge account.