Created
July 10, 2010 03:32
-
-
Save syntruth/470399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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