itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Fri Nov 29, 2002 11:35 pm
Simutronics Dragonrealms - Autoroller |
To start rolling, go to the room where you choose your race; type /roll and you'll be prompted for a race and the minimum total number for all stats (x out of 80). If you get tired of rolling before reaching your desired total, type /rolloff.
This roller pauses .5 seconds between each roll, and at the end will tell you how many times you rolled to get your total and what your lowest roll was (just for fun). I don't remember who wrote the base code, but it was publicly released. Minor enchancements by me.
Martin
#CLASS {AutoRoller} {disable}
#TRIGGER {Strength=(%d)} {#VAR Str %1}
#TRIGGER {Reflex=(%d)} {#VAR Ref %1}
#TRIGGER {Agility=(%d)} {#VAR Agi %1}
#TRIGGER {Charisma=(%d)} {#VAR Cha %1}
#TRIGGER {Discipline=(%d)} {#VAR Dis %1}
#TRIGGER {Wisdom=(%d)} {#VAR Wis %1}
#TRIGGER {Intelligence=(%d)} {#VAR Int %1}
#TRIGGER {Stamina=(%d)} {#VAR Sta %1;#ADD Count 1;#MATH Total @Str+@Ref+@Agi+@Cha+@Dis+@Wis+@Int+@Sta;#MATH Grandtotal @Total+@Grandtotal;#IF (@Total < @Newlow) {#VAR Newlow @Total};#ECHO @Total;#IF (@Total < @minimum) {#ALARM +.5 {touch @race figurine}} {#BEEP;#SAY Got it!;#SAY;#SAY Your Stat Total = @Total;#SAY Lowest Total = @Newlow;#SAY You touched the figurines @Count times for a grand total of @Grandtotal Stats.;#SAY;#VAR Grandtotal 0;#VAR Count 0;#T- AutoRoller}}
#CLASS 0
#ALIAS /roll {#T+ AutoRoller;race=%prompt( human, "Enter your chosen race:");minimum=%prompt( 76, "Enter your minimum desired stat total:");#VAR Newlow @minimum;touch @race figurine}
#ALIAS /rolloff {#T- AutoRoller} |
|