Latest version | 0.2.0 |
---|---|
Minimum Core | 9.238 |
Compatible Core | 9.238 |
Last updated | 3 years ago |
Created | 3 years ago |
Authors |
|
Languages |
|
Systems | All systems |
Project source | Project URL |
An extention to moo-man's excellent DarkHeresy2E-FoundryVTT.
This module only optionally depends on the DH2 System and about-time. If they're not installed then the functions simply won't be loaded.
This module adds some extra functionality to the Actor and DarkHeresyActor classes enabling you do do cool things like:
// Let's say that you've ruled that Takedown can only be done once per day
// Otherwise your character get's dizzy
// We need some status effect to indicate that the character is dizzy
// Or at least I like to so that it's visible on the token
const dizzyStatusEffect = "stun";
async main() {
const actor = game.user.character;
// You can only use Takedown if you have the talent
if (actor.hasTalent("Takedown")) {
if (actor.hasStatusEffect(dizzyStatusEffect)) {
ui.notification.warn("This character can't perform a Takedown twice in one day");
// You could use actor.timeUntilStatusEffectExpiry(dizzyStatusEffect)
// to display how long until they can use Takedown again
} else {
// Do stuff for the takedown
actor.enableStatusEffectFor(dizzyStatusEffect, {hours: 1});
}
} else {
ui.notification.warn("This character can't perform a Takedown");
ui.notification.warn("You'll need to invest in the talent first");
}
}
main();
The docs have more examples and more functions, take a look :)
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: olivers-dh2-extras 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.