Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Morague
Beginner


Joined: 16 Dec 2000
Posts: 27

PostPosted: Sun Apr 01, 2001 3:05 am   

Runstats triggers for Avatar MUD
 
This will keep track of your run stats for you. Enable the Runstats button at the beginning of the run, type runstats at the end of the run. Resetall clears out the current stats.

#ALIAS runstats {#math tbash @makebash+@missbash;#MATH bashper (@makebash*100)/@tbash;#math tthrow @makethrow+@missthrow;#MATH throwper (@makethrow*100)/@tthrow;#math ttrip @maketrip+@misstrip;#MATH tripper (@maketrip*100)/@ttrip;say |Y|Run Stats: |BR|@runxp |Y|experience points gained.|N|;say |Y|I bashed |BC|@bashper %|Y|, I threw |BC|@throwper %|Y| & I tripped |BC|@tripper % of the time.|N|} "Stats"
#ALIAS resetall {#ec Resetting all stats to zero.;ttrip=0;tthrow=0;tbash=0;makebash=0;missbash=0;percent=0;runxp=0;makethrow=0;maketrip=0;missthrow=0;misstrip=0} "General"

#TRIGGER {^You attempt to} {#add missbash 1} "Stats"
#TRIGGER {^You bash into} {#add makebash 1} "Stats"
#TRIGGER {^You sweep} {#add misstrip 1} "Stats"
#TRIGGER {^You throw} {#add makethrow 1} "Stats"
#TRIGGER {^You trip} {#add maketrip 1} "Stats"
#TRIGGER {^You try to grab} {#add missthrow 1} "Stats"
#TRIGGER {^You receive (%d) experience points.} {#add runxp %1} "Stats"

#VAR throwper {0} {0} "Variables"
#VAR tripper {0} {0} "Variables"
#VAR bashper {0} {0} "Variables"
#VAR ttrip {0} {0} "Variables"
#VAR tthrow {0} {0} "Variables"
#VAR tbash {0} {0} "Variables"
#VAR runxp {0} {0} "Variables"
#VAR makebash {0} {0} "Variables"
#VAR makethrow {0} {0} "Variables"
#VAR maketrip {0} {0} "Variables"
#VAR missbash {0} {0} "Variables"
#VAR missthrow {0} {0} "Variables"
#VAR misstrip {0} {0} "Variables"
#VAR statsbutton {0} {0} "Variables"

#BUTTON 2 {Statistics Off} {#T+ stats} {Statistics On} {#T- stats} {} {statsbutton} {} {Size} {80} {23} {} {} {} {12} {10} {} {} "Button" {} {} {}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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