Author Topic: What is EffectHitPointChangeWhenDying()?  (Read 324 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What is EffectHitPointChangeWhenDying()?
« on: May 20, 2015, 05:22:02 am »


               

I read about in Lexicon but I dont understand. When this effect must be applied on a character? Why the HP is being reduced even below zero? Do the effect ends when HP > 0 if a character with -50HP was healed by EffectHitPointChangeWhenDying(+x)?


 


Please someone explain me this function and how to use it.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
What is EffectHitPointChangeWhenDying()?
« Reply #1 on: May 20, 2015, 03:16:27 pm »


               

This effect only works on a PC when the PC is dying.


 


Dying means that the PC is at 0 or less hit points. ( HP <= 0 )


This effect creates a rate of HP loss while the PC is dying.


 


Death occurs when the death effect is applied. I don't remember if that is at -10 hit points or simply when you choose to apply a death effect.


 


 


This is an interesting effect and could be fun to play with in a death system.



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
What is EffectHitPointChangeWhenDying()?
« Reply #2 on: May 20, 2015, 03:20:56 pm »


               

Heh, that's one I have not seen either. It's not used by any of the scripts in the game. It looks like you could use it to implement a bleeding system. Usually people just use effectDamage and heartbeat (or phb) code to do bleeding damage. This looks like the engine would do it for you. I don't know if it works or not.


 


I think the -10 is hardcoded.  I'm not sure how useful it will be if you have the chance of auto stabilizing since you'd need a HB or something anyway, might as well just do the effectDamage.