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.
GetDamageDealtByType alternative?
Débuté par
Calgacus
, déc. 13 2010 07:03
#1
Posté 13 décembre 2010 - 07:03
#2
Posté 13 décembre 2010 - 12:59
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
Posté 16 décembre 2010 - 02:21
ok, thanks. I was hoping maybe someone had a big script made up already for this type of thing.
#4
Posté 16 décembre 2010 - 02:53
Check out the The True Troll scripts for an example of how to handle specific types of damage taken.Calgacus wrote...
ok, thanks. I was hoping maybe someone had a big script made up already for this type of thing.
-420
#5
Posté 16 décembre 2010 - 03:47
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?





Retour en haut






