![]() |
Dice - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Dice (/Thread-Dice) |
Dice - Nachtmusique - 03-16-2016 02:33 AM Does anyone have a script for a dice rolling game using the gump dice images? RE: Dice - Nachtmusique - 03-16-2016 08:00 AM I guess I should give a better explanation of what I'm trying to do. This is nothing like anything i've ever attempted, and I need some serious help! I'm trying to create a dice rolling system for a game with 8 types of custom six-sided dice. Here is a screanshot of the gump I've set up. http://s328867739.onlinehome.us/wp-content/uploads/2016/03/dice-roler.png The idea for the top part of the dialog (with the big dice) to be empty to begin with. Players will select a combination of colored dice using the 8 small colored dice buttons at the bottom. Once they are content with their selection, they use the button in the middle of the circle to roll the dice. The big dice each have two small buttons at the top corners. The little die button at the top left is to re-roll that individual die (removing the original results of that dice.) The X on the right is to remove that dice from the dice pool (removing any results scored by that dice.) The "clear" button at the bottom removes all dice from the pool. I don't need any rules based functionality, but I would like the script to tally up the results of a roll using the 3 stats that are on each die. The hearts are "Wounds" The Lightning Bolts are "Surges" and the numbers are "Range" I'm not expecting anyone to script the system for me, but a few examples to help get me going would be very helpful. I'm pretty lost. Here's the code for the dialog so far: Code: [DIALOG d_dice_tower] RE: Dice - Coruja - 03-30-2016 01:33 PM try using <R1,6> to create tags using random numbers between 1~6 TAG.Dice1=<R1,6> TAG.Dice2=<R1,6> TAG.Dice3=<R1,6> ... this will make things easier, all you need to do is make the dialog read these tags, generate the tag when you roll the dice, and remove the tag when you press to remove it |