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
cxs410
Beginner


Joined: 04 Oct 2005
Posts: 20

PostPosted: Mon Oct 17, 2005 11:13 pm   

A tougher script..
 
I want to calculate how hard a specific hit that a mob is doing to me.

Basically I need to capture a few things here.

The way a mob hits me (ex//barely injures).

My current hp, cur_hp (I've got this part I know what my current hp is)

My hp after a hit, (this is a tough one because cur_hp changes as soon as I'm hit. (that is the biggest stumbling block) if I can capture the difference then I suppose I could do a count for hit_injure +1 (everytime I'm injured) and divide the total damage that has been inflicted on me everytime I'm injured to figure out how much damage is occuring (roughly) everytime i am injured...

So i guess what I'm asking any thoughts on how to say, if your injured take your cur_hp from before your were injured and subtract your cur_hp and add that number to injured_count..
Reply with quote
ChrisD
Beginner


Joined: 18 Oct 2000
Posts: 18

PostPosted: Mon Oct 17, 2005 11:33 pm   
 
Try starting here...

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=19440
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