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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Marvel Super Heroes Macro

For Marvel Super Heroes RPG you roll a 1d100 on a table and get a range of results. Either White, Green, Yellow or Red. Is there a way to do this, in a macro where it can roll 1d100 and if it is greater than X it displays green, if greater than Y then Yellow, If greater than Z then Red, else it shows as White? I would like it also display the roll, so, I can't really use a rollable table, unless I want to make 100 entries on the rollable table.
1457269519

Edited 1457269825
Ziechael
Forum Champion
Sheet Author
API Scripter
Without the API (a pro subscription perk) you could use the critical success and failure highlighting to give you a range of white (no highlight), green, blue (yellow) and red highlights. I'm not the most familiar with the use of them but on a smaller scale: [[1d6cs3cs4cs5cf5cf6]] would give you a normal roll on a 1 and 2, a green roll for 4, blue (yellow) for 5 and red for 6. to scale this up to a d100 would be a big bit of code as it would have to be hardcoded (unless someone better than me can explain how to have conditions be between certain numbers rather than 'greater than, less than or exact') admittedly this might be just as much work as a table with 100 entries lol. My code uses the exact numbers to tell the dice engine how to display the roll with crit success being green, crit failure being red and numbers that are both are blue (yellow). The  dice reference in the  wiki tells you a bit more about how to use this feature.
Thanks for the reply. I would not mind investing the time in a rollable table with 100 entries if it was easy to port from 1 game to another.
1457289351

Edited 1457289838
Ziechael
Forum Champion
Sheet Author
API Scripter
Sure thing, to copy tables across games you'd need access to the  transmogrifier (another pro perk sorry) which would allow you copy the table across to any game you DM'd in. Alternatively you could have your game with the table and when wanting to start another one you would make a  copy of that game to inherit the table and then change everything else as needed. Using a cs/cf based macro it would be as simple as copying and pasting the 1d100cs.... bit into any macro that used the system. Are the tables dynamic or fixed? You'd need to adjust the cs and cf ranges accordingly for each use-case if so. If you ever decide to go the  pro user route there is a community created character sheet and an API script that supports it to reference the tables for you :) [edit] looking at the table it may be a bit more hassle than i first imagined although it is nothing some clever excel based concatenating couldn't quickly produce each d100 instance for...
1457302844
PaulOoshun
Marketplace Creator
I ended up making macros instead, one for each "level" -Feeble, Poor, Typical, Good, Excellent and so on, partly because the table seems to have some hiccups in progression. I wrote them like this: 01-07 BLUE 08-60 WHITE 61-90 GREEN 91-99 YELLOW 100 RED /roll d100 And then let the player read the roll and result.  This was also because we allowed spending Karma on rolls to increase them, which you couldn't easily do with a rollable table.  Hope that helps!
Yeah that is probably a good way, thanks
So here is what I ended up doing, several macros, but here is an example of 3 of them. 1st Macro Blunt Attack (I did 1 for each type of roll) &{template:default} {{name=Blunt Attack}} {{rank=#Rank }} {{Attack=[[1d100]]}} {{Result= White: Miss Green: Hit Yellow: Slam Red: Stun}} 2nd Macro Rank ?{Attack Rank | Fb, #Feeble | Pr, #Poor | Ty, #Typical | Gd, #Good | Ex, #Excellent | Rm, #Remarkable | In, #Incredible | Am, #Amazing | Mn, #Monstrous | Un, #Unearthly | ShX, #Shift-X | ShY, #Shift-Y | ShZ, #Shift-Z | Class 1000, #Class-1000 | Class 3000, #Class-3000 | Class 5000, #Class-5000 | Beyond, #Beyond } 3rd Macro Feeble (I did 1 for each rank) Feeble White: 1-60 Green: 61-90 Yellow: 91-99 Red: 100 Sample output Blunt Attack Rank Feeble White: 1-60 Green: 61-90 Yellow: 91-99 Red: 100 Attack Rolling 1d100 = (<span class="basicdiceroll">56</span>)" style="border: 2px solid rgb( 254 , 246 , 142 ) ; padding: 0px 3px ; font-weight: bold ; cursor: help ; font-size: 1.1em ; background-color: rgb( 254 , 246 , 142 )">56 Result White: Miss Green: Hit Yellow: Slam Red: Stun
Here is a better sample output