|
tonky Newbie
Joined: 16 Aug 2002 Posts: 6 Location: Austria
|
Posted: 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? |
|
|
|
Drevarr Beginner
Joined: 19 Dec 2001 Posts: 17 Location: USA
|
Posted: 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 |
|
|
|
|
|