Many API scripts make use of the GM notes. I would like to use macros to specify certain values for API's which use JSON to determine their effects.
_________________________________
ITS A TRAP SAMPLE JSON SCRIPT
{
"attack": 4,
"damage": "2d8 + 6",
"message": "A pressure plate gives way and darts fire forth from hidden compartments in the walls!",
"notes": "If the character is hit, they also become poisoned.",
"spotDC": 14
}
_________________________________
This needs to be in the GM notes to make the trap go off. You can change these values to alter the effect.
I'd like to have this handled via a series of prompts for ease of use but I'm not certain how I'd get it written to the GM notes automatically.
{
"attack": ?{Set Attack Modifier|},
"damage": "?{Set Damage Dice|}",
"message": "?{Set Message On Trigger|}",
"notes": "?{Set Additional Notes|}",
"spotDC": ?{Set Spot DC|}
}

I got this after entering this macro. This is perfect. How, other than copying and pasting into the GM notes, can I write this directly to the GM notes? Is this even possible?
_________________________________
ITS A TRAP SAMPLE JSON SCRIPT
{
"attack": 4,
"damage": "2d8 + 6",
"message": "A pressure plate gives way and darts fire forth from hidden compartments in the walls!",
"notes": "If the character is hit, they also become poisoned.",
"spotDC": 14
}
_________________________________
This needs to be in the GM notes to make the trap go off. You can change these values to alter the effect.
I'd like to have this handled via a series of prompts for ease of use but I'm not certain how I'd get it written to the GM notes automatically.
{
"attack": ?{Set Attack Modifier|},
"damage": "?{Set Damage Dice|}",
"message": "?{Set Message On Trigger|}",
"notes": "?{Set Additional Notes|}",
"spotDC": ?{Set Spot DC|}
}

I got this after entering this macro. This is perfect. How, other than copying and pasting into the GM notes, can I write this directly to the GM notes? Is this even possible?