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


Joined: 17 Jul 2002
Posts: 11
Location: USA

PostPosted: Sun Mar 23, 2003 11:25 am   

Auto stat roller Script help
 
Here is a sample of my mud's Stat rolling for newbies
Keep in mind High is 1 below max..AAVG is Above Avg.. and BAVG is Below AVG
I'd prefer to have all important stats MAX or HIGH


Str: LOW. Int: MAX. Wis: MAX. Dex: AAVG.
Con: LOW. Chr: BAVG. Luc: MAX. - Accept? (Y/N):

Str: LOW. Int: AVG. Wis: AAVG. Dex: BAVG.
Con: LOW. Chr: LOW. Luc: AVG. - Accept? (Y/N):

Str: AAVG. Int: LOW. Wis: MAX. Dex: HIGH.
Con: LOW. Chr: LOW. Luc: LOW. - Accept? (Y/N):

Str: LOW. Int: AVG. Wis: HIGH. Dex: AVG.
Con: LOW. Chr: LOW. Luc: AVG. - Accept? (Y/N):

Str: BAVG. Int: AAVG. Wis: MAX. Dex: HIGH.
Con: BAVG. Chr: LOW. Luc: LOW. - Accept? (Y/N):

Str: LOW. Int: AVG. Wis: HIGH. Dex: AVG.
Con: BAVG. Chr: AVG. Luc: AVG. - Accept? (Y/N):

Str: AVG. Int: AVG. Wis: AVG. Dex: AVG.
Con: LOW. Chr: BAVG. Luc: LOW. - Accept? (Y/N):


If it was on one line I think I could do it
But since it takes 2 lines...I'm not sure...how to do it at all
STats I would want to be HIGH Or MAX are Int, wis, con , luck,,

Thanks
Collin
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Mar 23, 2003 11:44 am   
 
#TRIGGER {Str: %w. Int: (%w). Wis: (%w). Dex: %w.$Con: (%w). Chr: %w. Luc: (%w). - Accept? (Y/N):} {#IF (("%1" =~ "{HIGH|MAX}") and ("%2" =~ "{HIGH|MAX}") and ("%3" =~ "{HIGH|MAX}") and ("%4" =~ "{HIGH|MAX}")) {Y} {N}} "" {prompt|nocr}

Keep in mind that this trigger will accept the stats even if Str, Dex and Chr are LOW, as long as the others are HIGH or MAX.

Kjata
Reply with quote
only85
Beginner


Joined: 17 Jul 2002
Posts: 11
Location: USA

PostPosted: Sun Mar 23, 2003 3:32 pm   
 
this doesn't seem to work,
I'm not sure if its because the stats are on 2 different lines on the mud? when the trigger only appears to deal with one line? though I am not sure


any ideas?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Mar 23, 2003 7:03 pm   
 


Str: LOW. Int: MAX. Wis: MAX. Dex: AAVG.
Con: LOW. Chr: BAVG. Luc: MAX. - Accept? (Y/N):


Kjata's trigger with spaces
#TRIGGER {Str~:%s%w~.%sInt~:%s(%w)~.%sWis~:%s(%w)~.%sDex~:%s%w~.%s$Con~:%s(%w)~.%sChr~:%s%w~.%sLuc~:%s(%w)~.%s~-%sAccept~? ~(Y~/N~)~:} {#IF (("%1" =~ "{HIGH|MAX}") and ("%2" =~ "{HIGH|MAX}") and ("%3" =~ "{HIGH|MAX}") and ("%4" =~ "{HIGH|MAX}")) {Y} {N}} "" {prompt|nocr}


Wow I'm having challenges copying and pasting.
Ton Diening
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