I have this skript I just made here,
However, when I run the skript, it works perfectly fine and the first broadcast is completed, but the lore of the item in my inventory is not being set at all, how do y'all think I can fix this? Thanks.
Posted by: nutrition35 from the skUnity Discord. View the thread on skUnity Discord here
code_language.skript:
vb
on inventory click:
if event-inventoryaction is swap with cursor:
if cursor slot of player is nether star named "&6&lDash I":
if event-slot is sword:
cancel event
set {Sword} to event-slot
set cursor slot of player to air
play sound "block.note_block.pling" at volume 1 at pitch 2 to player
set the 2nd line of {Sword}'s lore to "&6Dash I"
if the 2nd line of {Sword}'s lore is not set:
set the 2nd line of {Sword}'s lore to "&6Dash I"
broadcast "done!"
else:
set lore of {Sword} to "&6Dash I"
broadcast "done!"
Posted by: nutrition35 from the skUnity Discord. View the thread on skUnity Discord here