Lore + name renaming issues

  • 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.

Viiral

New Member
Apr 26, 2019
9
0
0
19
England
Code:
on inventory click:
    if clicked item is helmet or chestplate or leggings or boots:
        if the lore of player's cursor slot contains coloured "&6&lCrystal Bonus":
            set {crystal.lore} to the name of player's cursor slot
            if clicked item's lore contains "&6&lArmor Crystal":
                message "&c&l(!) &cThere is already a armor crystal on this item!"
                cancel event
            else:                   
                set lore of clicked item to "%lore of event-item%||%{crystal.lore}%)"
                message "&a&l(!) &aYou have applied a armor crystal!"
                clear {crystal.lore}
                cancel event
Using 1.8.9 skript skellet and skquery

I'm basically trying to add a lore to the clicked item. The lore needs to be the same as the cursors name.
E.g:
name of cursor = "Pickles"
I want pickles to be added to the lore

And I know someone is going to comment this:
set lore of clicked item to "%lore of event-item%||Pickles"
and this is not what I want
 
Why don't you want "%lore of event-item%||Pickles"? Does that not work for you or are you looking for something else?

This is what I did for adding lore to player's tool for custom enchants
Code:
command hi:
    trigger:
        loop integers between 1 and 25:
            if line loop-int of lore of player's tool is not set:
                set {_tool::%player%} to player's tool
                set player's tool to air
                set line loop-int of lore of {_tool::%player%} to "lore ;D"
                set player's tool to {_tool::%player%}
                delete {_tool::%player%}
                stop loop
 
Status
Not open for further replies.