|
Aeleanth Newbie
Joined: 12 Jan 2005 Posts: 8
|
Posted: 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.
Can anybody help me? |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: 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 |
|
|
|
Aeleanth Newbie
Joined: 12 Jan 2005 Posts: 8
|
Posted: 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.
I dont know what can cause this, because the trigger works 'perfectly'...
Any idea? |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: 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...
|
|
|
|
Aeleanth Newbie
Joined: 12 Jan 2005 Posts: 8
|
Posted: 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. |
|
|
|
|
|