EddieDover / fvtt-player-achievements

A FoundryVTT module for Player Achievements.
GNU General Public License v3.0
1 stars 1 forks source link

Player Achievements - A FoundryVTT module

This module provides GMs with a way to award players with achievements.

Latest Release Download Count Forge Installs Foundry Hub Endorsements Foundry Hub Comments

Links

Upcoming Changes API Documentation
Link Link

Features

Developers

GMs

Players

All

Known Conflicts

Plugin id Conflict
None

Support

Feel free to file a Bug Report / Feature Request under the Issues tab of Github.

How to Use

DMs & Players

Note: Players will see achievements that they are allowed to see based on the DMs options.
Players will also not see the add-achievement/export/import/award/unaward/etc buttons.

First, click the Icon on your side panel:

Markup

The following tags are supported in the Achievement Description:

Developers

Hooks for Achievement Events

The module provides two hooks, "fvtt-player-achievements.awardAchievement" and "fvtt-player-achievements.unAwardAchievement", allowing developers to integrate custom functionality after an achievement is granted or removed to/from a character.

Both hooks grant two parameters, the Achievement ID and the Character UUID, in that order.

Example Usage
  // Triggered after an achievement is granted to a character
  Hooks.on("fvtt-player-achievements.awardAchievement", (achievementId, characterUUID) => {
    console.log(`Character ${characterUUID} has gained the achievement: ${achievementId}`);
  });

API

An API is also provided that allows direct control of this module. See API.md

Screenshots

Achievements Icon

Achievements Options

Achievements Screen (GM)

Achievements Screen (Player)

Achievement Message

Add Achievement Screen

Credits

Sounds

notification.ogg - https://freesound.org/people/Rob_Marion/sounds/542043/

Images

default.webp - https://game-icons.net/1x1/skoll/achievement.html

Localization

Spanish - @maeonian

Brazilian Portuguese - Daniel Norberto