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
Lune
Newbie


Joined: 06 Jul 2002
Posts: 2
Location: Canada

PostPosted: Sat Jul 06, 2002 5:30 am   

Help on making a not-so-basic autoroller...
 
Basically is what I need is an autoroller that will interpret several different lines. I need something that can do:

.....stat max
Str: 35 85
Int: 25 35
Per: 30 50
Agi: 35 95
Con: 70 70

Thanks.

Faded.
Reply with quote
Lune
Newbie


Joined: 06 Jul 2002
Posts: 2
Location: Canada

PostPosted: Sat Jul 06, 2002 5:52 am   
 
Err, though it'd be better if I pasted the whole thing.


Your stats are:
Current Racial
Stat Max
Str: 78 85
Int: 31 35
Per: 36 50
Agi: 67 95
Con: 46 70
Is this acceptable?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jul 06, 2002 11:44 am   
 
You can use $ in patterns to match a newline. Example:
#TRIGGER {%sCurrent%sRacial$%sStat%sMax$%sStr:%s(%d)%s(%d)$%sInt:%s(%d)%s(%d)$%sPer:%s(%d)%s(%d)$%sAgi:%s(%d)%s(%d)$%sCon:%s(%d)%s(%d)$Is this acceptable~?} {#IF (requirements are met) {yes} {no}}

Kjata
Reply with quote
MinT_T
Newbie


Joined: 06 Jul 2002
Posts: 6

PostPosted: Sat Jul 06, 2002 9:37 pm   
 
Try this one? :)

Strength : 4
Intelligence : 15
Wisdom : 8
Dexterity : 8
Constitution : 9

Do you wish keep these stats (y/n)?
Reply with quote
MinT_T
Newbie


Joined: 06 Jul 2002
Posts: 6

PostPosted: Sat Jul 06, 2002 9:45 pm   
 
Oh btw, the tricky part is, Im trying to get all the stats at least 20. So if all stats are 20+ say yes, otherwise say no.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jul 06, 2002 10:58 pm   
 
Answer is here.

Kjata
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