Skip to content

Instantly share code, notes, and snippets.

@syntruth
Created July 10, 2010 03:16
Show Gist options
  • Save syntruth/470391 to your computer and use it in GitHub Desktop.
Save syntruth/470391 to your computer and use it in GitHub Desktop.
[h: SaveBonus = json.get(macro.args, "SaveBonus")]
[h: SaveName = json.get(macro.args, "SaveName")]
[h: SaveModifier = json.get(macro.args, "SaveModifier")]
[h, if(SaveName == ""), code: {
[SaveName = "Saving Throw"]
};
{
[SaveName = SaveName + " Saving Throw"]
}
]
[SaveName] = [t: 1d20 + SaveBonus + SaveModifier]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment