Category: Lore
Suggested name: DamageCheck
What I want:
Hey there guys, recently I've been trying to make a script where when a player attacks a mob it finds the lore of the item and finds where it mentions "Damage: %number%", for my first attempt, I did this:
http://pastebin.com/jr6kBr0E
The last line is to see if the variable was actually set, as you've probably already guessed this was not the case, but there were no errors, I did see another possible way of using loops and splitting the lore but I'm so inexperienced with this side of skript, that I have no idea what I'm doing.
So, what I am asking for is, a script that can read the lore and find a line where it mentions damage and then a value i.e
"Damage: 6"
It must be during a damage event and the attacker is a player and it is finding the lore of the tool the player has used.
Thank you!
When I'd like it by: No time limit
Suggested name: DamageCheck
What I want:
Hey there guys, recently I've been trying to make a script where when a player attacks a mob it finds the lore of the item and finds where it mentions "Damage: %number%", for my first attempt, I did this:
http://pastebin.com/jr6kBr0E
The last line is to see if the variable was actually set, as you've probably already guessed this was not the case, but there were no errors, I did see another possible way of using loops and splitting the lore but I'm so inexperienced with this side of skript, that I have no idea what I'm doing.
So, what I am asking for is, a script that can read the lore and find a line where it mentions damage and then a value i.e
"Damage: 6"
It must be during a damage event and the attacker is a player and it is finding the lore of the tool the player has used.
Thank you!
When I'd like it by: No time limit
Last edited: