Fantasy Grounds Merchandise
  1. #1

    [5E] Override dice skins?

    Is it possible for an extension to override dice skins for a roll?

    I've tried a lot of approaches, but no luck so far.

    This code does what I want if the user has selected the Default skin option, but otherwise the skin overrides these settings.

    Code:
       local d8 = { type = "d8", dicetextcolor = "FF0000", dicebodycolor = "000000" }; -- red on black
       local rRoll = { sType = "myRollAction", aDice = { d8 } };
       ActionsManager.roll(nil, nil, rRoll);
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  2. #2
    What are you trying to do? Most of the rolls pull the actor dice settings and/or damage dice settings, and apply them to the dice within the relevant code sections.

    Regards,
    JPG

  3. #3
    This roll will have no actor (unless that would help) or damage; it's for a mini-game. So I just want to customize the dice (nothing fancy, just a color) to match the roll. This works fine if the roller has the default set, but if they have a skin set, it uses the skin. That's fine of course; I just want to override it for this roll.
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  4. #4
    You can look at DiceRollManager script to see how it's done for actors and damage dice.

    Regards,
    JPG

  5. #5
    I haven't been able to get it to work. Can anyone point to an extension that overrides the dice skin setting to use its own colors (so I can see how it should be done)?
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  6. #6
    The savage worlds ruleset allows players to assign custom dice skins to their characters. It saves that to db.xml under the character node.
    That might be helpful.
    Add feature suggestions for Savage Worlds to Fantasy Grounds Feature Request.
    My store products
    My Forge extensions

Thread Information

Users Browsing this Thread

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

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