Damage loop-entity accounting for armour.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.

Jay_2004

Member
Feb 21, 2017
13
1
3
24
I'm trying to make a super smash mobs remix using item projectiles. Having trouble damaging entities accounting for what armour they have on.
Example I damage loop-entity by 2 with no armour and it deals 2 hearts of damage while I damage loop-entity by 2 with full diamond armour and does the same damage.
Code:
on item projectile hit:
    drawDot count 1, particle "explosionlarge", center event-location, rainbowMode false, visibleRange 32, pulseDelay 0, keepFor 1 ticks
    play raw sound "random.explode" at event-location with pitch 2 volume 1.5
    loop entities in radius 0.2 around event-location:
        damage loop-entity by 2
        stop loop
 
Status
Not open for further replies.