Hey gents - looking for some help for what I assume is a dead easy macro.
Here's what I'm trying to do:
- User activates the macro.
- macro spawns a dialogue box requesting an input for a skill level
- macro rolls a d100
- macro calculates the difference between the d100 roll and the skill level
- D100 roll, skill level, and margin of difference printed in the chat window
Here's what I've been trying. What I can't seem to figure out is the syntax to calculate the margin.
&{template:default} {{name=Calculate Margin}} {{Rolled=[[d100]]}} {{Skill Rating = [[?{Skill Rating| 50}]]}} {{Margin = [[Skill Rating - Rolled)]]}}
Any help appreciated.