Latest version | 1.0.0 |
---|---|
Minimum Core | 9 |
Compatible Core | 9 |
Last updated | 2 years ago |
Created | 2 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.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.