|
Lune Newbie
Joined: 06 Jul 2002 Posts: 2 Location: Canada
|
Posted: 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. |
|
|
|
Lune Newbie
Joined: 06 Jul 2002 Posts: 2 Location: Canada
|
Posted: 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? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
MinT_T Newbie
Joined: 06 Jul 2002 Posts: 6
|
Posted: 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)? |
|
|
|
MinT_T Newbie
Joined: 06 Jul 2002 Posts: 6
|
Posted: 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.
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Jul 06, 2002 10:58 pm |
Answer is here.
Kjata |
|
|
|
|
|