STAR TREK 2d20
Page 1 of 2 12 Last

Thread: Dice result

  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    Dice result

    This is what I obtain with a 2d100 roll, one red/fumble. The plus (+) sign is wrongly positioned.
    I think it happend only with d100.
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,272
    Blog Entries
    9
    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.

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    No extension, personalized ruleset.
    This code
    Code:
    Debug.console("MESSAGE", rMessage)
    Comm.deliverChatMessage(rMessage);
    has this output (I divided it into several lines to show the part that I think is interested)
    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' }
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  4. #4
    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

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    Quote Originally Posted by Moon Wizard View Post
    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
    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!

  6. #6
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    I did the test suggested by Trenloe and got this (CoreRPG, no extentions)

    /roll 1d100 --> 1d100 (64)
    /roll 1r100 --> 1r10 (8)
    /roll 1g100 --> 1g10 (10)
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  7. #7
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    Another try.

    /roll 1d10+1r10+1g10 --> 10+4(red)+8(green) = 22
    /roll 1d100+1r100+1g100 --> 40 and only 1 normal d100 was rolled
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  8. #8
    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",
    },
    Regards,
    JPG

  9. #9
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    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?)
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  10. #10
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    This is the color difference between an iconcolor us (I used "FFFF0000" for red, "FF00FF00" for
    green and "FF000000" for black) ad a /roll 1r10+1g10+1d10 command
    Attached Images Attached Images
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in