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


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jun 08, 2005 7:03 pm   

guage and enemy hit points
 
Hi,

I've just started using zmud, and for the most part it works great. I'm using it with materia magica, and the status bar comes up with hit points / spell points / stamina. Is there away to get enemy hit points / status to show up on there like it does on Portal?

Thanks.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Jun 08, 2005 7:16 pm   
 
show us an example of how the mud sends the data to you
_________________
Discord: Shalimarwildcat
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Wed Jun 08, 2005 7:17 pm   
 
With Portal-compliant MUDs extra data is sent when you use the Portal client that isn't accessible by other clients. And it's proprietary so making something that fakes Portal is a big no-no.
_________________
Barry
Gaidin @ 3k.org
Reply with quote
greekman123
Newbie


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jun 08, 2005 7:23 pm   
 
Okay, thanks for the replies :)

Here is a snippet from a log file.

By the way, the version i'm using is 7.05a.

<77hp 140sp 150st> kill bird
You enter into combat with a mynah bird.

A mynah bird is in perfect health.



<77hp 140sp 150st> <77hp 140sp 150st>

You fail to hit a mynah bird with your attack.

A mynah bird fails to hit you with her attack.

A mynah bird is in perfect health.



<77hp 140sp 150st> <77hp 140sp 150st>

A mynah bird is cut on the wing with your slash causing heavy damage.

You are smashed on the head by a mynah bird's bash causing superficial damage.

A mynah bird looks pretty beaten up.



<76hp 140sp 155st> <76hp 140sp 155st>

You fail to hit a mynah bird with your attack.

A mynah bird's bash didn't seem to have any effect on you.

A mynah bird looks pretty beaten up.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Jun 08, 2005 8:21 pm   
 
alright... you just need to capture all the varias damage stages there are total, and the order they go in and you could so something at least close
_________________
Discord: Shalimarwildcat
Reply with quote
greekman123
Newbie


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jun 08, 2005 8:30 pm   
 
Thanks Shalimar! Would i do this with a trigger, and if so could post an example?
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Wed Jun 08, 2005 8:49 pm   
 
You'd need to post all the damage emotes and (if you can get them) the rough numbers they relate to.

Then you could do something like

#TRIGGER {^&Target is in perfect health.$} {#sub @Target: 100~%}
#TRIGGER {^&Target looks pretty beaten up.$} {#sub @Target: 75~%}

And so on. They'd be rough values (and I'm not sure exactly what they are) but that would work. It's look like

A mynah bird: 100%
A mynah bird: 75%
_________________
Barry
Gaidin @ 3k.org
Reply with quote
greekman123
Newbie


Joined: 07 Jun 2005
Posts: 6

PostPosted: Wed Jun 08, 2005 8:52 pm   
 
Cool. Very Happy This gives me a place to start.


Thanks for the help.
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Wed Jun 08, 2005 9:00 pm   
 
Not a problem. If you wanted to put it on your status bar or on a gauge, you could the number to a variable instead.


#TRIGGER {^&Target is in perfect health.$} {#var TargetHealth 100}
#TRIGGER {^&Target looks pretty beaten up.$} {#var TargetHealth 75}
_________________
Barry
Gaidin @ 3k.org
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