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
orcsoul
Beginner


Joined: 05 Sep 2004
Posts: 10

PostPosted: Wed Oct 20, 2004 11:07 pm   

Roller help...
 
I seem to have misplaced my cache of roller scripts... and can't locate a roller for the output type I've got... so I was hoping someone could point me in the right direction... Here's a snippet of the rolling output:

Choose from any of the following groups of abilities...
Group: 1 2 3 4 5
Str: 15 13 14 15 9
Int: 16 10 12 13 9
Wis: 12 14 14 15 11
Dex: 12 11 15 13 9
Con: 13 12 12 13 14
Choose a group <1-5>, or press return to reroll(Help <attribute> for more information) -->

Choose from any of the following groups of abilities...
Group: 1 2 3 4 5
Str: 17 16 14 12 12
Int: 13 16 11 11 13
Wis: 13 12 11 11 14
Dex: 12 16 8 12 9
Con: 12 13 15 11 12
Choose a group <1-5>, or press return to reroll(Help <attribute> for more information) -->


Two sets just to make sure I captured everything.

Edit: Looks so much prettier before bbcode mauls the formatting...

Group #s 1-5 line up with the 10's column when there are 2 digits, and the 1's column when only one digit... so in column 5 the 9 is under the 5 for dex. Also.. using 7.05 version of zmud and would rather have the roller add up a column's total rolls and if the roll is >= a number stop, rather than have it look at each individual stat and check if it's >= whatever you set them to be.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Fri Oct 22, 2004 8:26 pm   
 
Try this. To use, type Rollstats and enter in a value you wish to have your stats, and it will choose the statgroup with the highest value above the given amount:

#alias RollStats {#PR TotalStat "What total do you wish to achieve?";#var Stats %null;#Var MaxStats %null;#T+ RollStats}
#class RollStats
#trigger {{^Group}:%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)} {#Addkey Stats {1=%int(%db(@Stats,"1")+%1)}
#Addkey Stats {2=%int(%db(@Stats,"2")+%2)}
#Addkey Stats {3=%int(%db(@Stats,"3")+%3)}
#Addkey Stats {4=%int(%db(@Stats,"4")+%4)}
#Addkey Stats {5=%int(%db(@Stats,"5")+%5)}}
#trigger {Choose a group ~<1-5~>} {#loopdb @Stats {#if (@MaxStats<%val) {#var MaxStats %val;#var MaxGroup %key}};#if (@MaxStats>@TotalStat) {#exec @MaxGroup;#T- RollStats} {#CR}}
#Class 0
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