|
Brykanst Newbie
Joined: 20 Aug 2002 Posts: 1
|
Posted: Tue Aug 20, 2002 12:31 pm
autoroller |
How do i get an autoroller to display the total that is rolled so i know if what i want it to roll is even possible
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Aug 20, 2002 12:48 pm |
Autorollers come in all shapes, sizes, and flavors. No two autorollers are created equal. This means that you need to provide more information. If you already have an autoroller and want it to add all of the rolled values, then post the autoroller you currently have. Most likely, your autoroller saves each rolled value in a separate variable. To find out the total just add each of these variables together. Of course, there are some autorollers that don't save each value in a separate variable. That is why you need to post what you have for us to be able to help.
Also, to find out what is the max possible sum of all the rolled values, just add the max possible value for each rolled stat. For example, lets say your roll is like this:
STR: 18
CON: 13
WIS: 14
DEX: 15
INT: 19
And lets say that STR, WIS, and INT may have a max value of 20 while CON and DEX may have a max value of 18. Then, the max possible sum of all rolled values would be:
20 + 20 + 20 + 18 + 18 = 96
Kjata |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Thu Aug 29, 2002 1:38 am |
Kjata's suggestion assumes that the roll for one stat does not influence another and that the total itself is not capped to prevent near-perfect stats (as it is on my MUD).
Your best best is to make a trigger that captures all the stats from an auto-roll and then adds them up and compares them to a variable (which starts out at 0). If less than or equal to the variable, it will continue rolling. If greater than the variable, it stores the new total in the variable (and perhaps waits for your input to do something since you might want to keep the stats).
- Charbal |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|