all code Works BUT it doesnt how i want it to basicly if i did /lvl3 it would pick 1 out the 3 listed below lores and some lore would have other chances of geting picked if 1 is picked it is applied on players held item and ends but the what realy happens is a TON of lore is added and like all of them are applied please give me code and dont say add a extention or somthing as im new to skript
===
command /lvl3:
trigger:
if player is holding a weapon:
player's xp >= 149719
chance of 35%
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line I"
chance of 25%:
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line II"
chance of 15%:
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line III"
====
===
command /lvl3:
trigger:
if player is holding a weapon:
player's xp >= 149719
chance of 35%
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line I"
chance of 25%:
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line II"
chance of 15%:
remove 149720 from xp of player
set {_item} to player's tool
add 1 to {lore}
set line {lore} of lore of player's held item to "&cLife Line III"
====