Proszę, skrypt nietestowany.
on damage of player:
add victim's helmet, victim's chestplate, victim's leggings and victim's boots to {_armour::*}
remove all air from {_armour::*}
size of {_armour::*} >= 1
loop {_armour::*}:
lore of loop-value is set
set {_n} to 1
loop lore of loop-value:
set {_l} to uncoloured loop-value-2
{_l} contains "Srednia Odpornosc ":
set {_val} to subtext of {_l} from character (length of {_l} - 18) to character (length of {_l} - 1)
set {_val} to {_val} parsed as number
exit 1 loop
add 1 to {_n}
add {_val} to {_finalVal}
if {_finalVal} >= 100:
set damage to 0
else:
set damage to (damage - (damage * ({_finalVal} / 100)))