Code: Select all
#CLASS {RescuePrac}
#VAR Total {0} {0}
#VAR success {0} {0}
#VAR failed {0} {0}
#VAR spercent {0} {0}
#VAR fpercent {0} {0}
#TRIGGER {You are rescued by (%w)*} {#VAR partner %1 rescue @partner}
#TRIGGER {You fail the rescue.} {rescue @partner}
#CLASS 0
#CLASS {RescuePrac|Tracker}
#ALIAS total {
#MATH Total @success+@failed
#MATH spercent ((@success*1.0)/@total)*100
#MATH fpercent ((@failed*1.0)/@Total)*100
#SAY Total rescue attempts: @total
#SAY Total number SUCCESSFUL: @success
#SAY SUCCESS Percent: @spercent%
#SAY Total number of FAILED: @failed
#SAY FAILED Percent: @fpercent%}
#ALIAS represc {
#MATH Total @success+@failed
#MATH spercent ((@success*1.0)/@total)*100
#MATH fpercent ((@failed*1.0)/@Total)*100
gsay SUCCESSFUL rescues: %format( "&2.2f&s", @spercent, "%") FAILED rescues: %format( "&2.2f&s", @fpercent, "%")
#TRIGGER {Banzai! To the rescue...} {#ADD success 1}
#TRIGGER {You fail the rescue.} {#ADD failed 1}
#CLASS 0
#ALIAS rpracon {#T+ RescuePrac;#RES {RescuePrac};#say Rescue Practice ENABLED.}
#ALIAS rpracoff {#T- RescuePrac;#say Rescue Practice DISABLED.}
Oh yeah almost forgot controls:
rpracon --- enables rescue practice with a parnter and resets tracker variables
rpracoff --- disables rescue practice
total --- displays rescue stats localy (no spamming way to check)
represc --- displays percentage of successful attempts and failed attempts through the gsay command