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
blkno1
Novice


Joined: 26 May 2002
Posts: 30
Location: USA

PostPosted: Tue Mar 16, 2004 1:16 am   

#VAR Question
 
I have created an xp counter that tracks the xp earned while playing the MUD I play (Medievia). I want to add two more things to it...


1. How do I make a variable that doesn't get re-written unless the new value is higher? What Im trying to do is track the highest xp ever received for a kill.

2. Reset a variable from the commandline instead of going into settings.


Thanks
-jim [8D]
Reply with quote
Carabas
GURU


Joined: 28 Sep 2000
Posts: 434
Location: USA

PostPosted: Tue Mar 16, 2004 1:28 am   
 
1.
#VAR BestXP 0
#TRIGGER {You {receive|are awarded} (%d) experience} {#IF (%1 > @BestXP) {#VAR BestXP %1}}

2.
XPCounter=0 or
#VAR XPCounter 0 or, if you have a default value assigned
#RESET [xp counter classname]
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