Author Topic: Any ONhit script for creature that deals damage to those who attack it with non-reach melee weapon?  (Read 325 times)

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0


               I'm basically looking for scripts that give creature aura damage for those that attack it and deal a d6 of damage type or five points of damage,-no save when struck by hand or melee weapon.

Much appreciated if anyone can point me in a direction.

I would also like similar script for ONDAMAGED for creatures with damaging blood for any who hit it with melee weapon that doesn't have reach.

Thanks
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0


               

Artistmonk wrote...

I'm basically looking for scripts that give creature aura damage for those that attack it and deal a d6 of damage type or five points of damage,-no save when struck by hand or melee weapon.

Much appreciated if anyone can point me in a direction.

I would also like similar script for ONDAMAGED for creatures with damaging blood for any who hit it with melee weapon that doesn't have reach.

Thanks


By those that attack it, are you looking at the OnPhysicalAttacked event (which triggers even for misses) or the on-hit unique power property?  For either just use a GetIsRanged() for the attacking weapon to rule out all ranged instances.

I don't understand "damaging blood" for the next request, would this just be a visual effect, or damage as well.
               
               

               
            

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0


               Yes I guess it would be OnphysicalAttacked event, even if no damage occurs the attacker would be still take damage for simply touching the creature with hand non-reach melee weapon.

Second question....
The creatures blood is acidic so striking it with a melee weapon and damaging it deals 5 points of acid damage to attacker from acid blood spray I guess the visual of a acid attack would work but not necessary. Although a message might be a good idea to let PC attackers know that striking it up close is damaging them.

Does anyone have aura spell that affects creatures within 15 of  aura-creature, no visual effect necessary but wouldn't mind of course?