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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Tue Jul 14, 2009 10:05 am   

Experience Per Second for a mud
 
Code:
#CLASS MushScripts|Exp
#STAT {   @MushScripts/Exp/tnlK()K Exp Per Second: @MushScripts/Exp/ExpPerSecond   Exp Gained: @MushScripts/Exp/Gexp} "MushScripts|Exp"
#VARIABLE MushScripts/Exp/tnl 0
#VARIABLE MushScripts/Exp/tnlK 0
#VARIABLE MushScripts/Exp/exp 0
#VARIABLE MushScripts/Exp/Gexp 0
#VARIABLE MushScripts/Exp/seconds 0
#VARIABLE MushScripts/Exp/max 0
#VARIABLE MushScripts/Exp/tnlstart 0
#ALIAS atconnect {#var MushScripts/Exp/Gexp 0;#var MushScripts/Exp/Seconds 0} "MushScripts|Exp"
#ALIAS atdisconnect {#var MushScripts/Exp/Gexp 0} "MushScripts|Exp"
#ALIAS resetexp {#var MushScripts/Exp/Gexp 0;#var MushScripts/Exp/Seconds 0} "MushScripts|Exp"
#ALARM {-00:01} {#ADD MushScripts/Exp/Seconds 1;#MATH MushScripts/Exp/ExpPerSecond @MushScripts/Exp/Gexp/@MushScripts/Exp/Seconds} "MushScripts|Exp"
#TRIGGER {You have (%d) experience with (%d) more experience to level.$} {#var MushScripts/Exp/max %1;#var MushScripts/Exp/tnl %2;#math MushScripts/Exp/tnlK (@MushScripts/Exp/tnl/1000)} "MushScripts|Exp"
#TRIGGER {You have been drained of (*) experience.$} {#add MushScripts/Exp/max -%1;#add MushScripts/Exp/tnl %1;#add MushScripts/Exp/exp -%1;#add MushScripts/Exp/Gexp -%1;#math MushScripts/Exp/tnlK (@MushScripts/Exp/tnl/1000);#math MushScripts/Exp/expK (@MushScripts/Exp/exp/1000)} "MushScripts|Exp"
#TRIGGER {^~*Level(%s)(%d)(%s)(%d)-(%d)(%s):} {#math MushScripts/Exp/tnlstart %5-%4} "MushScripts|Exp"
#TRIGGER {You gain (%d) experience for your victory.$} {#add MushScripts/Exp/tnl -%1;#add MushScripts/Exp/exp %1;#add MushScripts/Exp/Gexp %1;#math MushScripts/Exp/tnlK (@MushScripts/Exp/tnl/1000)} "MushScripts|Exp"
#TRIGGER {You gain (%d) experience.$} {#add MushScripts/Exp/tnl -%1;#add MushScripts/Exp/exp %1;#add MushScripts/Exp/Gexp %1;#math MushScripts/Exp/tnlK (@MushScripts/Exp/tnl/1000)} "MushScripts|Exp"
#BUTTON 1 {_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_^0^_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_V_!=======<+>=======!_V_1_2_3_4_5_6_7_8_9_^0^_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_} {} {} {} {@MushScripts/Exp/tnl} {} {} {} {} {} {} {} {} {12} {} {Gauge||15|@MushScripts/Exp/tnlstart|300000|10} {0} "MushScripts|Exp" {Explore|Inset} {} {}
level
[/quote]
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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