Re: [Circle] Victim HP

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 07/28/96


On Fri, 26 Jul 1996, Kyle Willer wrote:

> Durring a fight i need to get the victims HP.  I don't know where to get 
> this from.  I am going to use this in the prompt.  Can someone point me 
> in the right direction.

well, first of all you can get a pointer to the mob that ch is fighting 
by : FIGHTING(ch). then you get get 'it's' hitpoints by 
GET_HIT(FIGHTING(ch)) if I remember correctly :) there is a 'longer' way 
to do this i.e. without using those macro's, but only improves the chance 
of errors in my oppinion.

Hope this helps,
Con.

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab  
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration. 

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST