Token Lore glitch

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

Vane

Member
May 27, 2019
11
0
1
Code:
                    if player has enough space for 1 magma cream:
                        remove {_token} from {token::balance::%player%}
                        give player 1 magma cream named "%{_token}%" with lore "&7This is a physical token. To claim it||&7simply &fright-click &7and claim tokens!||||&7Withdrawed by- &a&o%player%||&7Amount- &a&o%{_token}% &7token(s)."

http://prntscr.com/nwy4fo Why does it do that? Please help me, thanks.
 
You have to use lore as a list: "line 1", "line 2" and "line 3"
 
Code:
                    if player has enough space for 1 magma cream:
                        remove {_token} from {token::balance::%player%}
                        give player 1 magma cream named "%{_token}%" with lore "&7This is a physical token. To claim it||&7simply &fright-click &7and claim tokens!||||&7Withdrawed by- &a&o%player%||&7Amount- &a&o%{_token}% &7token(s)."

http://prntscr.com/nwy4fo Why does it do that? Please help me, thanks.
It is easier if you do it this way (Although it will take more time and lines of code):
code_language.skript:
set {_cream} to magma cream named "%{_token}%"
set line 1 of lore of {_cream} to "&7This is a physical token. To claim it"
set line 2 of lore of {_cream} to "&7simply &fright-click &7and claim tokens!"
set line 4 of lore of {_cream} to "&7Withdrawed by- &a&o%player%"
set line 5 of lore of {_cream} to "&7Amount- &a&o%{_token}% &7token(s)."
give 1 of {_cream} to player
 
code_language.skript:
set {_cream} to magma cream named "%{_token}%" with lore "&7This is a physical token. To claim it", "&7simply &fright-click &7and claim tokens!", "&7Withdrawed by- &a&o%player%" and "&7Amount- &a&o%{_token}% &7token(s)."
if player has enough space for {_cream}:
    remove {_token} from {token::balance::%player%}
    give {_cream} to player
 
Status
Not open for further replies.