Solved Increase Damage

  • 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 skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MateoxPL

Active Member
Jan 27, 2018
116
0
0
25
Hello
How i can increase damage? for example:
I have diamond sword with sharpness 10
and when we hit monsters, the damage increases by 50% but we hit player, attacker damage is reduced by 100%
 
Thanks for reply
but how to set it?
i have this script but doesn't work:
code_language.skript:
on damage:
    attacker is player:
        if uncolored name of attacker's tool contain "Blade":
            victim is not player:
                increase damage by 50%
            else:
                increase damage by -100%
 
try this

code_language.skript:
on damage:
    attacker is player:
        if uncolored name of attacker's tool contain "Blade":
            victim is not player:
                set {_dam} to damage * 0.5
                damage victim by {_dam} hearts
            else:
                cancel event
[doublepost=1525624233,1525624099][/doublepost]Actually, by further testing, the Skript you wrote actually works.

I tested by doing "increase damage by 1000%" and the entity (a sheep) died instantly
I did "increase damage by -100%" and it did the animation as if it were hurt, but it isn't actually getting hurt and i couldn't kill it,

So maybe just stick with that code
 
Status
Not open for further replies.