Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
steamtank
Newbie


Joined: 29 Dec 2002
Posts: 3

PostPosted: 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]
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
steamtank
Newbie


Joined: 29 Dec 2002
Posts: 3

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net