 |
steamtank Newbie
Joined: 29 Dec 2002 Posts: 3
|
Posted: Sun Dec 29, 2002 8:37 pm
Yet another Autoroller |
I am trying to make an auto roller that i can set the total of all the stats and/or set the number i wish to roll on each of the stats and have it accept only that number or higher. (nice run-on sentence for ya) is this possible?
I would like to have it so that i can type something like str=20; int=18; wis=18; dex=17; ect... or just total=85.
Here is the mud output.
17str 14int 16wis 16dex 18con 15chr Accept these stats? [Yes No] |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Dec 29, 2002 10:53 pm |
This line creates all the variables and sets them to zero
str = 0;int = 0;wis = 0;dex = 0;con = 0;chr = 0;total = 0
You can then change any or all of them. And here's the autoroller itself.
#TR {(%d)str (%d)int (%d)wis (%d)dex (%d)con (%d)chr Accept these stats} {#IF ((%1 >= @str) AND (%2 >= @int) AND (%3 >= @wis) AND (%4 >= @dex) AND (%5 >= @con) AND (%6 >= @chr) AND ((%1 + %2 + %3 + %4 + %5 + %6) >= @total)) {yes} {no}} {} {nocr|prompt}
LightBulb
Senior Member |
|
|
|
 |
steamtank Newbie
Joined: 29 Dec 2002 Posts: 3
|
Posted: Mon Dec 30, 2002 4:28 am |
ok one more thing... can i get it to prompt me wether or not to accept the stats instead of just it automaticaly saying yes?
|
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Dec 30, 2002 6:06 am |
Sure. Just put whatever you want where it does the yes. For instance:
#SAY {These stats look okay, say yes????}
LightBulb
Senior Member |
|
|
|
 |
|
|
|