Trigger Happy: Traps

@Kevin I tried your macro, but it didn’t work because of the item.rollDamage function which don’t exist, according to the F12 console.
Yet, I’m not informed enough to know which function or variables exist on the PF2 world system.
Yet, I found a solution with LMRTFY and a few simple macros (three, to be exact), and here’s my solution for anyone interested.

First of all, go to your PF2 compendium with The Furnace and LMRTFY installed, and then import the roll-skill macro THREE TIMES, because we’ll need to adjust them according to which roll we want to do.
Second, modify one of your roll-skill macro to be a roll-ability or roll-saves macro. In the roll-saves scenario, do as follow :

/* This macro requires the advanced macros of Furnace and the LMRTFY module, v0.7+ 
 * This will request a saving throw for the currently selected player using LMRTFY roll request dialog
 * Takes the save as its first argument, or if not set, requests all
 * Example: /roll-saves "reflex"
 */

const saves = args[0]
if (!actor) return;
LMRTFYRoller.requestSavingThrows(actor, saves);

Do the same for the two others, replacing with the right function at the end.
Then setup your trap token, name it, hide it, just like usual.
Now on the Trigger Happy end :
If you want your player to roll a reflex save, do as follows :
@Token[trapName] @ChatMessage[/roll-saves reflex] @Trigger[capture move]
It will do the following thing :
image
For now, this technique does not allow to roll damage automatically, but I’m working on it. If any of you got any idea about how to improve this, feel free to answer this !

Thanks a lot
MJAjani