So I saw a thread by Ryan L. about a Roll Comparison script he had made. I am brand new to API, but my friend and I are trying to design a homebrew system. Combat is based around an attacker and defender each rolling a die to determine hits and misses. I was wondering if there is an existing API which could automatically take my macros, or some variation of them and compare the results. Attacker Roll Macro: /em attacks with ?{Skill?|Unarmed}!! [[1d8+?{Weapon Tier?}+?{Wager (Stamina/Mana)?|0}]] Defender Roll Macro: /em defends with ?{Which Type of Defense?|Block|Dodge|Parry}! [[1d8+?{Skill Tier?}+?{Wager (Stamina/Mana)?|0}]] The emote could be removed, and currently (as I am also new to macros) this is a rather input heavy setup. But basically, the attacker types in the name of the weapon skill they use, and the value of that skill. (Didn't want to have a 19 item drop down menu or 19 separate macros), and the Defender chooses their type of defense and inputs the value of that skill. The value of that skill is a static modifier that changes only when a player "levels-up" The wager value is something they can draw from their resource pools (ie Stamina and Mana). And the character would input the wager amount they wanted then go in and subtract those values from the token's corresponding bars...... (something to automatically reduce their health, stamina and/or mana when appropriate would be cool, but I imagine that is a totally different script and not my priority) Sorry for all the superfluous information, not exactly sure what is relevant to the scripts and what is not. Here's the real question: 1) Is there a script which could allow for these rolls to initiated automatically and then compared telling everyone whether the attack was a hit or a miss? 2) As a workaround or other solution, could the attacker macro include a target token in the macro that would then be able to automatically prompt the targeted token's controlling player or GM to put in the input for their defender's roll?