Create account / Log in

Total of random dice roll

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Total of random dice roll

Postby Extralean » September 14th, 2013, 9:09 pm

Is there a way I can roll various dice (D4, D6, D8...) and then have their total displayed instead of adding the totals up on a piece of paper?
Extralean
 
Posts: 121
Joined: August 2nd, 2009, 4:06 am
Location: New Brunswick, Canada (GMT -4)

Re: Total of random dice roll

Postby capi3101 » September 14th, 2013, 10:16 pm

Yeah - that's a setting of Dice Buttons. You simply check the "Report Total" button and when the button is used it will report the total instead of individual results. If you want to set it up so that you can use a single button for various dice types, make sure "Prompt for Values when Button Pushed?" is also selected; otherwise you'll need one button for each type of dice you need to roll with your mod.

I haven't found a method wherein VASSAL will report both the outcomes of individual dies and the overall sum yet, if that's what you're asking...

Wait a minute - are you asking if you can have a d4, d6 and d8 rolled and then have the mod sum them up with the push of a single button? I know how to do that, but I don't have sufficient time to type up the procedure at the moment. If I've answered your question already, okay; if not, say so and I'll post the procedure when I get an opportunity.
No matter how many friends you think you have
and no matter how popular you think you are,
the size of your funeral is going to depend on the weather.
capi3101
 
Posts: 122
Joined: July 22nd, 2013, 9:39 pm
Location: Norman, Oklahoma (USA)

Re: Total of random dice roll

Postby DrNostromo » September 15th, 2013, 2:09 am

Create a Global Property called something like DiceTotal.

Then you can have a Set Global Property trait to establish the value DiceTotal and Set Value Directly to

{D4_result + D6_result}

...or add to together whatever dice you want and then have a Report Trait report $DiceTotal$
User avatar
DrNostromo
 
Posts: 1061
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA


Return to Module Design

Who is online

Users browsing this forum: No registered users and 3 guests