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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Mar 11, 2003 2:49 pm   

XP Tracker II
 
I ask about this earlier, but err, it doesn't work like it suppose to. So I'm asking if anyone can help me make up this trigger.

What I want to do, is keep track of all the XPs I have gotten during my mudding, and write that into a text file everytime I log off with the date and the total experience I earn during that session.

The trigger is as follow

You receive 5 experience, your share of 770.

..when a I'm in group, or

You receive 13 experience.

..when I'm by myself.

Not sure if I'm asking it the right way, but if anyone know what I mean, please help me out. =)

zMUD General Discussion: All the power you'll ever need.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Mar 11, 2003 3:58 pm   
 
#VAR totxp 0 0
#TRIGGER {You receive (%d) experience} {#ADD totxp %1}
#ALIAS atdisconnect {#FILE 1 xplog.txt;#WRITE 1 {%time("mm/dd/yy"): @totxp};#CLOSE 1}

Kjata
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Mar 11, 2003 6:08 pm   
 
sweet..ty

zMUD General Discussion: All the power you'll ever need.
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Fri Mar 28, 2003 7:54 pm   
 
Oh, I got another question, I realize that this triggers still fire and write in the xplog even when the xp is 0. Is there a way to tell it to only write down when the xp is more than 0? Since sometime I get disconnected and in the trying to reconnect process, it write down like 20+ 0 xp in the xplog

zMUD General Discussion: All the power you'll ever need.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Mar 28, 2003 8:54 pm   
 
Modify the atdisconnect alias:
#ALIAS atdisconnect {#IF (@totxp > 0) {#FILE 1 xplog.txt;#WRITE 1 {%time("mm/dd/yy"): @totxp};#CLOSE 1}}

Kjata
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Fri Mar 28, 2003 8:59 pm   
 
thanks, as always

zMUD General Discussion: All the power you'll ever need.
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