Thread: Dice result
-
August 30th, 2023, 21:07 #1
-
August 30th, 2023, 21:23 #2
Ruleset? Extensions? Step to reproduce?
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
August 30th, 2023, 22:50 #3
No extension, personalized ruleset.
This codeCode:Debug.console("MESSAGE", rMessage) Comm.deliverChatMessage(rMessage);
Code:[8/30/2023 11:39:16 PM] s'MESSAGE' | { s'sender' = s'Xander', s'text' = s'[Check] Swim -30 difficulty', s'secret' = bFALSE, s'font' = s'systemfont', s'diemodifier' = #-30,s'dice' = { #1 = { s'result' = #2, s'type' = s'r100' }, #2 = { s'result' = #-54, s'type' = s'd100' } }, s'icon' = s'portrait_gm_token', s'type' = s'abilitycheck' }
-
August 31st, 2023, 05:29 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
If you are talking about the "r10+0d100", this is the default behavior applied to a given roll if an dice.expr not defined. (i.e. dice are treated as having + sign; and their values are added together)
If you want a different behavior, you will need to provide the dice.expr you want to use.
Regards,
JPG
-
August 31st, 2023, 08:06 #5
I think the problem is that r100 doesn't work properly (same for the other colored result dice 0 g100 etc.). It can be recreated in CoreRPG - use /roll 1r100 and it rolls 1r10. Use /roll r100+d100-30 and one tens die is rolled and you get similar to what's shown in post #1.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
August 31st, 2023, 10:22 #6
-
August 31st, 2023, 10:31 #7
-
September 1st, 2023, 19:39 #8
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Ok, I looked into this a bit. The issue is that "r100" and "g100" are not official die types; but used as ruleset workarounds to specify colored icons in the chat window. Therefore, the client doesn't know that the r100 and g100 are percentile dice. You should not use the "colored" versions of the dice in /roll or /die commands.
There is a built-in way to set coloration on the die icons via the API, if you want to recreate something like that in your ruleset:
Code:dice = { { "type" = "d100" }, { "type" = "d100", iconcolor = "FF0000" }, { "type" = "d100", iconcolor = "00FF00" }, expr = "1d100-1d100+1d100", },
JPG
-
September 2nd, 2023, 14:50 #9
As far as I'm fine like this, it seems to me that the colors are a bit dark. I've tried
changing the hexadecimal values without really being able to change the color of
the dice. At best I get shades of gray (maybe the first hex pair is the alpha channel?)
-
September 2nd, 2023, 15:11 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks