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

Character sheet question

1580307319

Edited 1580307495
Hello all, I am posting this here per a suggestion from someone in hopes that maybe someone has already done something like this. I am not an experienced coder so I trial and error a bunch to arrive at what I would like to have. I play and old 1981 game called Bushido that uses the low side of the dice for a lot of rolls.  In order to do that I have made my own HTML sheet that works great using both HTML and macros both overall ones and on the sheet itself.  My question is this:  Roll20 seems to make the D20 if a 20 is rolled default to a green 20 and if a 1 is rolled to red 1.  I play a game that a 2 on the die 20 is significant if it is rolled as well as an 18 or 19. Is there any way to make those rolls appear a different color. For example, a 2 to be orange and an 18 or 19 a light green or blue.  If not well that is how it goes but I thought I'd ask.  If anyone is aware of a way that someone with limited coding knowledge may be able to accomplish this or something like it I would be grateful. Thanks 
1580307690
Ziechael
Forum Champion
Sheet Author
API Scripter
You can use roll highlighting to do something akin to that: [[1d20cs2cs18cs19]] Would give you green on a 2, 18 and 19 [[1d20cf2cs2cs18cs19]] Would give you blue on a 2 (as it is both a 'fail' and 'success' in the highlight's eyes) [[1d20cf2cf18cs18cs19]] Would give you a red on a 2 (a 'fail), blue on a 18 ('fail' and 'success') and green on a 19 ('success') In all of these instances 1s and 20s would have no colouration at all as they are not ear marked as special in any way.
1580308461
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Wow Zeichael! That's a lot closer than the suggestions given in the other thread on this. I didn't realize the cs and cf tags could be "stacked" so deep. I have learned.
1580313170
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yep, cs and cf can be stacked infinitely, but the success syntax can only be once per roll.
1580314038
Ziechael
Forum Champion
Sheet Author
API Scripter
I've made liberal use of cf and cs in casino style games for my players... as long as you don't want more than 4 colours (red, green, blue and base inline) then the world is your sea-snot.
1580351997

Edited 1580352858
Thanks for the detailed response. This wouldn't work for me it appears as I would still need the 1 and 20 to be colored as is and then the 2,18 and 19 as another color blue or otherwise would be fine. 
1580353213

Edited 1580354588
Ok this works ... now to get it into my Macros    [[1d20cf1cf2cf18cf19cs2cs18cs19cs20]] ...................... Ok so here is my attack macro on the character sheet. You click on the token and the macro looks at the character sheet to determine the to hit number with a calculation of modifiers listed in certain boxes on the sheet. In this game, low numbers are better to hit so a 1 is a critical cs the opposite of games like 5e. The dice determines the to hit number that the character has hit or missed by X amount and displays that.  Here is the character sheet attack Macro. How do I get the above in that? /me Attacks with @{Weapon_1} attack roll hits or misses by [[floor((@{Raw_BCS_1}+@{level}+@{Quality_1}+@{Special_Hit_Mod_1}-?{Armor Class|0}+?{Situational Modifier|0})/?{Which Attack|Primary,1|Second,2|Quarter,4|Eighth,8})-1d20]] ............................... Ok, people I just plugged it in and it works!  Woot ty so very much! /me Attacks with @{Weapon_1} attack roll hits or misses by [[floor((@{Raw_BCS_1}+@{level}+@{Quality_1}+@{Special_Hit_Mod_1}-?{Armor Class|0}+?{Situational Modifier|0})/?{Which Attack|Primary,1|Second,2|Quarter,4|Eighth,8})-1d20cf1cf2cf18cf19cs2cs18cs19cs20]]
1580383996

Edited 1580384007
David
Sheet Author
Aramathis said: Hello all, I am posting this here per a suggestion from someone in hopes that maybe someone has already done something like this. I am not an experienced coder so I trial and error a bunch to arrive at what I would like to have. I play and old 1981 game called Bushido that uses the low side of the dice for a lot of rolls.  In order to do that I have made my own HTML sheet that works great using both HTML and macros both overall ones and on the sheet itself.  My question is this:  Roll20 seems to make the D20 if a 20 is rolled default to a green 20 and if a 1 is rolled to red 1.  I play a game that a 2 on the die 20 is significant if it is rolled as well as an 18 or 19. Is there any way to make those rolls appear a different color. For example, a 2 to be orange and an 18 or 19 a light green or blue.  If not well that is how it goes but I thought I'd ask.  If anyone is aware of a way that someone with limited coding knowledge may be able to accomplish this or something like it I would be grateful. Thanks  Don't think this will help you at the moment but I have an Aftermath sheet partially done and Bushido and Daredevils are on my list.
1580406591

Edited 1580458882
David thank you for letting me know!  For your knowledge, I use a huge number of additions that I wrote for potential publishing, unfortunately, they never came to pass since when I contacted fantasy games Unlimited years ago they were not interested in the mods on the original game despite high-end issues that make the system eventually break down which anyone that knows systems could see after playing it for a prolonged period of time. All they wanted were just adventure books and that was not enough for me given 38 years of game design experience that has taught me not to invest in a game that had broken down years ago due to high-end gameplay failures. That being said with the many modification and tons of material I have added the game it has now run for years for me and those in my inner circle. I tell you all this only to say I would love to see the original sheet design and perhaps I could use it as a base to work my own sheet.  My limited coding skills have allowed me to make a workable HTML sheet but that is all as of today. I use a bunch of macros on and off the sheets that many of these fine people have helped me write. Thanks again to everyone that assisted with this latest project!
Further to this, is there a way to display a cs or cf on a multi-dice roll? For example [[3d6cf18cs3]]
1580868920

Edited 1580878635
GiGs
Pro
Sheet Author
API Scripter
No, there's no way to do that without an API script. It's a bit of a glaring oversight, as its one of the more common rolls you can do in rpgs.
GiGs said: No, there's no way to do that with an API script. It's a bit of a glaring oversight, as its one of the more common rolls you can do in rpgs. Dammit GiGs...you just broke my heart LOL  ;) BTW...I presumed you meant "there's no way to do that without an API script"  :P
1580878661
GiGs
Pro
Sheet Author
API Scripter
I don't know what you mean, I clearly say "without" (Lol, yes, you're right.)