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
lvshak1
Newbie


Joined: 08 Oct 2003
Posts: 1
Location: USA

PostPosted: Wed Oct 08, 2003 6:35 pm   

Experience logger.
 
I need help with a kind of logger I'm working on.
It's basically going to work like this.
it's going to take a number(X) from my prompt and another number(Y) that the mud gives it from that and divide them X/Y then print the total Z.

The first number is from the prompt and appears like this
TNL 39001 <-----X
The second number is from text sent from the mud.
You receive 377 experience points.
where 377 is Y

Then I need it to print the total to the screen every time
that line appears.
If any one can help that would be great.
I have the general idea, using a variable and a couple triggers but I can't get the variable to work right.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 08, 2003 7:59 pm   
 
#TR {TNL (%d)} {#VAR X %1;#SAY Z = %eval( @X/@Y)} {} {prompt}
#TR {You receive (%d) experience points) {#VAR Y %1;#SAY Z = %eval( @X/@Y)}

Edit: Added missing )
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