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


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Fri Aug 16, 2002 1:27 pm   

auto reroll
 
i need help with a character creation trigger,
the mud output is:

-> reroll
-=-*-=- Your rolls -=-*-=-
Roll number: 1 = 13
Roll number: 2 = 13
Roll number: 3 = 10
Roll number: 4 = 8
Roll number: 5 = 13
Roll number: 6 = 15
-=-*-=-=-=-=**=-=-=-=-*-=-

i want the rolls to be summed up and be greater than 86 and two scores to be greater than 17. might someone help me?
Reply with quote
Drevarr
Beginner


Joined: 19 Dec 2001
Posts: 17
Location: USA

PostPosted: Fri Aug 16, 2002 5:04 pm   
 
#VAR Stat_Total {0}
#VAR Stat_Count {0}
#TRIGGER {Roll number: %d = (%d)} {#if (%1>17) {#ADD Stat_Count 1};#ADD Stat_Total %1} "RollStats"
#TRIGGER {-=-*-=-=-=-=**=-=-=-=-*-=-} {#if (@Stat_Total > 86 & @Stat_Count >1) {#SAY Looks like a keeper! TOTAL STATS: @Stat_Total Number over 17: @Stat_Count;No_Reroll;#T- RollStats} {#SAY TOTAL STATS: @Stat_Total Number over 17: @Stat_Count;#var Stat_Total 0;#var Stat_Count 0;Reroll}} "RollStats"
#TRIGGER {-=-*-=- Your rolls -=-*-=-} {#T+ RollStats}

Replace Reroll and No_Reroll above with whatever you input to accomplish the action.

I got this output:
-> reroll
-=-*-=- Your rolls -=-*-=-
Roll number: 1 = 13
Roll number: 2 = 13
Roll number: 3 = 10
Roll number: 4 = 8
Roll number: 5 = 13
Roll number: 6 = 15
-=-*-=-=-=-=**=-=-=-=-*-=-
TOTAL STATS: 72 Number over 17: 0
Reroll
-> reroll
-=-*-=- Your rolls -=-*-=-
Roll number: 1 = 13
Roll number: 2 = 13
Roll number: 3 = 10
Roll number: 4 = 20
Roll number: 5 = 20
Roll number: 6 = 20
-=-*-=-=-=-=**=-=-=-=-*-=-
Looks like a keeper! TOTAL STATS: 96 Number over 17: 3
No_Reroll
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