IcyLemonZ / pf2e-exploration-activities

A FoundryVTT module for Pathfinder2e. Adds a macro command that can be run by the GM which prompts selected players with a dropdown to select their current Exploration Activity and outputs the result to the Chat.
5 stars 14 forks source link

Link to PF2E Exploration effects #3

Closed MarkPearce closed 1 year ago

MarkPearce commented 2 years ago

This fork connects the activities selection dialog to the PF2E Exploration EFFECTS module. So that in addition to the normal chat message an effect (only an icon) is attached to the players token.

main changes GM Macro now passes the tokenID with the actor socket data includes tokenID regex expression on the #activities option.value to get the effect name. look up the effect from the Pf2e efffects compendium, and apply to token

if the effects module is not active, the chat message is still displayed, and the console will log a type error, but no other problem.

ps sorry about formatting seems my prettier has different settings.