Code: Select all
#forall {good;mighty;heroic;perfect;count;average;total} {#var &0 0};
#act {Strength: %w%sPower: %w%s} {#var str %1;#var pow %3}
#act {Dexterity: %w%sIntelligence: %w%s} {#var dex %1;#var int %3}
#act {Agility: %w%sWisdom: %w%s} {#var agi %1;#var wis %3}
#act {Constitution: %w%sCharisma: %w%s} {#var con %1;#var cha %3}
#alias {addcount} {#math {count} {$count + 1}}
#act {To swap stats: enter the first stat name folowed by the second stat}
{
#forall {$str;$pow;$dex;$int;$agi;$wis;$con;$cha}
{
#if {"&0" == "good"} {#math {good} {$good + 1};addcount};
#if {"&0" == "mighty"} {#math {mighty} {$mighty + 1};addcount};
#if {"&0" == "heroic"} {#math {heroic} {$heroic + 1};addcount};
#if {"&0" == "perfect"} {#math {perfect} {$perfect + 1};addcount};
};
#math {good} {$good * 82};
#math {mighty} {$mighty * 88};
#math {heroic} {$heroic * 94};
#math {perfect} {$perfect * 100};
#math {total} {$good + $mighty + $heroic + $perfect};
#math {average} {$total / $count};
#show Count: $count Total: $total Average: $average;
#nop change the number below to 94 for a lot more hits (few dozen minutes instead of hours);
#nop should also change the response (#system afplay) to whatever makes a sound or notifies you on your system;
#if {$count >= 4 && $average >= 95} {#system afplay $dir/chat.wav &} {#cr};
#forall {good;mighty;heroic;perfect;count;average;total} {#var &0 0};
}
#alias {login}
{
#act {Please enter your term type}
{
#cr;y;
#unact {Please enter your term type};
};
#session Roller torilmud.org 9999;
#split {0} {0};
}