Aller au contenu

Photo

GetDamageDealtByType alternative?


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

#1
Calgacus

Calgacus
  • Members
  • 122 messages
I was trying to get this function to work for me but it only works with EffectDamage(), I need somehing like that to work for every  time a  creature gets damaged even with basic melee weapons.
On the onDamaged event I want  a script which will determine the type of damage the creature just took and then do stuff based off that damage type.  Any scripts out there for this type of thing?

Thanks.

#2
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
Look up the function in the Lexicon. The example script at the bottom shows how to use the function to get the damage by type as a work-around to it only working with EffectDamage(). I have used it for things like getting DAMAGE_TYPE_FIRE.

#3
Calgacus

Calgacus
  • Members
  • 122 messages
ok, thanks. I was hoping maybe someone had a big script made up already for this type of thing.

#4
420

420
  • Members
  • 190 messages

Calgacus wrote...

ok, thanks. I was hoping maybe someone had a big script made up already for this type of thing.

Check out the The True Troll scripts for an example of how to handle specific types of damage taken.

-420

#5
Calgacus

Calgacus
  • Members
  • 122 messages
Is there a way tto detect if a creature was hit by an open hand attack? I was thinking, if a pc is throwing axes and on his last axe hits the monster, then when the script runs to check what weapon is in his hands - it will find nothing, so was the creature hit with an axe or an open hand?