Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Earthdawn Step Dice

I am looking to find out whether the I could create the Earthdawn Step Dice chart and reference it from an in game macro using the API. For those unfamiliar with the game, it uses a dice chart that changes the dice dependent on bonuses. For Example: Step 6 is d10!, step 7 is d12!, step 8 is 2d6!, step 9 is 1d8!+1d6! A character might roll step 6 to hit normally, but if he attacks aggressively it goes up by 3 steps to 9. I want to be able to have a macro that takes his base step of 6 and add to it a stat called @bonus and then it looks up what the new step is and rolls it. Is this possible in the API, and if so how difficult would if be for someone who is only familiar with scripting in python?
1368250912
Konrad J.
Pro
API Scripter
If I understand correctly it sounds fairly easy. I'm not saying this is the best way, just the first way I can think of.  You could probably do something with a macro event, but I haven't done those yet.  So I would use the chat message command event "!". Then you can make a macro that calls the various chat commands you want to run. So you might have a command like !edst charactername 6 bonus edst stands for you guessed it Earthdawn Step Dice.  charactername is the name of the character :).  Then his step dice.  Then the stat to use as a bonus. Your script figures out what it needs from the arguments passed to it.  Adds the stat bonus to the step dice and looks up the new step dice.  It then sends out a chat message to roll the dice, formatting the roll command from what it knows.
Awesome! I guess there is nothing left to do but learn Java. :)
It works! Thanks for the direction Konrad! <a href="https://gist.github.com/Sinless/5562325" rel="nofollow">https://gist.github.com/Sinless/5562325</a>
1368349312
Konrad J.
Pro
API Scripter
There you go. &nbsp;With the API the possibilities are endless (almost, Riley needs to give us more! :))