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


Joined: 12 Jan 2005
Posts: 8

PostPosted: Wed Jan 12, 2005 7:53 pm   

Capturing Damage
 
Hi.
I've tried to make a trigger that shows me the damage I cause.
There are some lines of the command y want to capture, like this:

You slice XX!
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.

XX hits you. [yy] HP.
XX hits you. [yy] HP.

You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.

XX hits you. [yy] HP.

You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You hit XX. [xx] HP.
You defeated your enemy.

I want that when the line You defeated ... then apeared an echo showing all the damage caused by the command.
Something like this:
You defeated your enemy.
Damage caused: XXX

I've tried to make the trigger but when the command starts and the zmud starts capturing the damage I can't put any other command till the message You defeated .. is shown.
Embarassed

Can anybody help me? Crying or Very sad
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Thu Jan 13, 2005 7:53 am   
 
#TR {You hit XX. ~[(%n)~] HP.} {#ADD DC %1}
#TR {You defeated your enemy.} {#ECHO Damage caused: @DC; #VAR DC ""}

That should add up and display the damage you did to your opp.
_________________
zMUD 7.05a
Reply with quote
Aeleanth
Newbie


Joined: 12 Jan 2005
Posts: 8

PostPosted: Thu Jan 13, 2005 8:24 pm   
 
I had exactly the same trigger as you told me.
It shows the damage caused correctly but the problem is that when I put the command and the zmud started to count the damage the zmud starts to run very slow and between 'You slice XX!'
and 'You defeated your enemy.' I cant write any coomand, press any macro or anything. Confused
I dont know what can cause this, because the trigger works 'perfectly'...
Any idea? Question Sad
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Thu Jan 13, 2005 8:29 pm   
 
Wow... runs very slow? What kind of computer do you have? =P 80386 with 4 megs ram? :D No seriously.. it shouldn't be that much of a problem... I only encountered such way way back when I had a 166 mhz pentium mmx... waaaaaaaaay back...
Reply with quote
Aeleanth
Newbie


Joined: 12 Jan 2005
Posts: 8

PostPosted: Thu Jan 13, 2005 8:40 pm   
 
I have a Pentium 4 3GHz 512 Ram so computer is not the problem.
Everything goes perfect except when I put that command and zmud captures the damage.
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