Giveth - reonZ/pf2e-toolbelt GitHub Wiki

This feature allows players to add effect/condition items to other player-owned or party member actors in the simplest of ways: drag & drop the item link onto the actor's token on the board.

Important

This feature requires a GM to be online to function.

Note

If the effect contains any Choiceset rule, the module will simulate their selection directly on the client before sending everything to the GM.

Settings

Effects/Conditions 🌎 (Allies Only)

Should players be able to drop effects & conditions onto actors they do not own.

Important

'Allies' refers to any actor the user can observe or is in a party the user can observe.

API

game.toolbelt?.api.giveth = {
    /**
     * use the module's giveth feature directly,
     * make sure to provide the appropriate drop data including
     * the context if necessary.
     */
    givethEffect: (
        targetActor: CreaturePF2e,
        originalItem: EffectPF2e | ConditionPF2e,
        data: DropCanvasItemData
    ) =>  Promise<void>,
    /**
     * return 'true' if the user can drop the effect on the actor
     * this encompass regular foundry/system and giveth specific drop rights
     */
    canDropEffectOnActor: (item: ItemPF2e, actor: ActorPF2e) => boolean;
}
⚠️ **GitHub.com Fallback** ⚠️