|
blkno1 Novice
Joined: 26 May 2002 Posts: 30 Location: USA
|
Posted: 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] |
|
|
|
Carabas GURU
Joined: 28 Sep 2000 Posts: 434 Location: USA
|
Posted: 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] |
|
|
|
|
|