Aller au contenu

Photo

OnDamaged event for PCs?


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

#1
Kato -

Kato -
  • Members
  • 392 messages
 Hi,

I'm currently writing a custom devastating critical routine using Terra's nwnx_events for windows and I would need to retrieve the damage dealt to players during PvP fights in order to apply a damage bonus based on the initial damage dealt(instead of applying a death effect). Of course, if the target is a NPC or monster, the OnDamaged event handler is there, but what about PCs? Anyone knows of an alternative?

Thank you!

Kato

Modifié par Kato_Yang, 08 août 2011 - 11:08 .


#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
Yes, onhit cast spell: unique power or custom spell will fire script before OnDamaged happens to PC and all damage functions are working there.

It however dont work on skin, it must be added to armor.

#3
Kato -

Kato -
  • Members
  • 392 messages
Thanks a lot Shadow!!

Modifié par Kato_Yang, 09 août 2011 - 01:37 .


#4
Alex Warren

Alex Warren
  • Members
  • 179 messages

It however dont work on skin, it must be added to armor.

It does work on skin, but only if your character doesn't wear armor ;)

Modifié par Alex Warren, 09 août 2011 - 07:19 .


#5
Xardex

Xardex
  • Members
  • 217 messages
You just blew my systems right out the window. Of course I had to test it all with no armor on!
Weeeell, should be simple enough to fix...

Modifié par Xardex, 09 août 2011 - 09:18 .


#6
Kato -

Kato -
  • Members
  • 392 messages
Thank you for that precision, Alex.

Modifié par Kato_Yang, 09 août 2011 - 05:51 .