5E Product Walkthrough Playlist
  1. #1

    Adding a customdie to the desktop

    In my ruleset, I have a need for a 1/2d6 (aka a d3). I can create the custom die and I just used the d4 model in this case. The onResult function simply returns random(3), hoping my players never notice that visually it's 2 but then shows up in the results as a 1 or 3.

    Anyhow, the only way to roll this die is to put the d4 on the desktop, then right-click it and access the d3 die through the radial menu. I really don't want my players ever rolling a d4 so this only causes extra confusion. It would be great if I could somehow cause picking up the d4 to just roll the d3 instead. Can this be done or am I just out of luck?

  2. #2

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    Why don't you just use the one that is on the right click menu of the d6?

  3. #3
    Valarian's Avatar
    Join Date
    Mar 2007
    Location
    Worcestershire, UK
    Posts
    2,567
    You can roll the custom die quickly through the /die command. Or you can create a macro by dropping the dice on to the macro slot, or by dragging a /die command to a macro slot from the chat entry area. Andraax is also correct, the d6 model is usually used for a d3 as the custom die just uses a rounded result/2. This equates to a 1 & 2 result returning 1, 3 & 4 returning 2 and 5 & 6 returning 3.
    Last edited by Valarian; February 8th, 2015 at 20:31.
    Using Ultimate license - that means anyone can play.
    Valarian's Fantasy Grounds Rulesets

  4. #4
    Fair enough, I'll just set it to be based off a d6. That makes a decent amount of sense actually. The need for 1/2d6 is pretty rare and it won't clutter up the desktop with a useless d4. Thanks!

  5. #5

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    No, I meant why don't you use the one that is already included in the ruleset?

  6. #6
    I don't follow sir. There is no d3 included in the ruleset. I had to create one in gameelements.xml. By basing it off of the d6, now I can see it in the radial menu for the d6 die on the desktop.

    Code:
    	<die name="dF" merge="delete" />
    	<die name="d4" merge="delete" />
    	<die name="d8" merge="delete" />
    	<die name="d10" merge="delete" />
    	<die name="d12" merge="delete" />
    	<die name="d20" merge="delete" />
    	<die name="d100" merge="delete" />
    
    	<customdie name="d3">
    		<model>d6</model>
    		<icon>d3icon</icon>
    		<menuicon>d3icon</menuicon>
    		<script>
    			function onValue(result)
    				return math.floor((result+1)/2);
    			end
    		</script>
    	</customdie>

  7. #7
    Oh and my crafty d3 icon is a d6 cut in half diagonally. I got a kick out of that.

  8. #8

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    Sorry, thought there was one included in CoreRPG; my mistake.

  9. #9

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    You should make a D2 as well - and make the icon a coin. :-)

  10. #10
    I don't suppose there's a way to color a particular 3d model of the die a different color than your usual dice is there? Then the d3 would look like a d6 but have a different color to make it distinguishable.

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