Author Topic: Event OnPlayer Damaged?  (Read 485 times)

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Event OnPlayer Damaged?
« Reply #15 on: June 26, 2014, 07:58:57 pm »


               True, but arent you limited to one onHitCastSpell per item?
Wont that limit the customization capabilities of your items?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Event OnPlayer Damaged?
« Reply #16 on: June 26, 2014, 08:25:47 pm »


               


True, but arent you limited to one onHitCastSpell per item?

Wont that limit the customization capabilities of your items?




true, but its easy to workaround

 - basically in each default onhitcastspell script (and there is like one...) you check for baseitem type and if its armor then you fire also the script for the ondamaged


               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Event OnPlayer Damaged?
« Reply #17 on: June 26, 2014, 08:39:31 pm »


               Cool,
Either way, regardless of how you implement it, an onDamaged event only adds value.