Skript add lore deletes skull skin

  • 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 community!

    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.
Aug 17, 2022
1
0
1
Edited because I've solved an issue and ran into another. I've added a skull in the GUI, made the lores as I wanted but after I add lores the skull loses the skin and it's back to Alex. I've deleted the lores adding part and it works perfectly, skull has skin but no lores. No idea what to do anymore, tried everything. I've also tried format, but it gives me "Can't understand condition/effect" error. Using SkQuery 4.17 and Skript 2.6.3. Here's the code:

Code:
set slot 9 of {_gui} to skull of {Mayors::Head_Name::1} parsed as offline player named "&e%{Mayors::Mayor_Name::1}%"
            format slot 10 of {_gui} with {Mayors::Head_Name::1}'s skull named "test name"

            delete {_Mayors::Lore::*}

            add {Mayors::Perk_1_Name::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_1_Description_1::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_1_Description_2::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_1_Description_3::1} to {_Mayors::Lore::*}

            add {Mayors::Perk_2_Name::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_2_Description_1::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_2_Description_2::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_2_Description_3::1} to {_Mayors::Lore::*}

            add {Mayors::Perk_3_Name::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_3_Description_1::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_3_Description_2::1} to {_Mayors::Lore::*}
            add {Mayors::Perk_3_Description_3::1} to {_Mayors::Lore::*}
           
            loop {_Mayors::Lore::*}:
                if {Mayors::Lore::%loop-index%} is not " ":
                    add "%{_Mayors::Lore::%loop-index%}%" to lore of slot 9 of {_gui}
           
            delete {_Mayors::Lore::*}

Any help is appreciated.
 
Last edited:
Status
Not open for further replies.