Skip to content

Instantly share code, notes, and snippets.

@syntruth
Created July 10, 2010 03:32
Show Gist options
  • Save syntruth/470399 to your computer and use it in GitHub Desktop.
Save syntruth/470399 to your computer and use it in GitHub Desktop.
<!--
This macro requires you to impersonate a token or otherwise have the token focused.
-->
[h: status = input(
"SaveName | Fortitude,Reflex,Will | Saving Throw Type | RADIO | VALUE=STRING",
"SaveModifier | 0 | Saving Throw Modifier"
)]
[h: abort(status)]
[h, switch(SaveName), code:
case "Fortitude": { [SaveBonus = Fortitude] };
case "Reflex": { [SaveBonus = Reflex] };
case "Will": { [SaveBonus = Will] }
]
[h: Args = json.set("{}",
"SaveName", SaveName,
"SaveBonus", SaveBonus,
"SaveModifier", SaveModifier
)]
[macro("SavingThrow@Lib:SynPF"): Args]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment