Aller au contenu

Photo

What is EffectHitPointChangeWhenDying()?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

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.



#2
henesua

henesua
  • Members
  • 3 878 messages

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.


  • WhiteTiger aime ceci

#3
meaglyn

meaglyn
  • Members
  • 811 messages

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.


  • WhiteTiger aime ceci