New line in lore

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

zuhir__

Member
Feb 16, 2017
14
3
3
22
Hi, i want to start a new line in the lore (only with Skript), how?

I have this:
Code:
command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore "&7Test lore :: test line 2"
        open {bankmenu} to player
( "::" don't work)

EDIT: || doesn't work either
EDIT 2: i know i can do "with lore "line 1" and "line 2" but i want only 1 message
 
Last edited:
I want only 1 message in options. Ex:
Code:
options:

    lore: Line 1 || Line 2

command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore "{@lore}"
        open {bankmenu} to player
 
I want only 1 message in options. Ex:
Code:
options:

    lore: "Line 1 " and "Line 2"

command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore {@lore}
        open {bankmenu} to player
[doublepost=1584343751,1584343401][/doublepost]
I want only 1 message in options. Ex:
Code:
options:

    lore: Line 1 || Line 2

command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore "{@lore}"
        open {bankmenu} to player

and if u use skript-mirror 2.0

Code:
expression:
    patterns:
        old lore %text%
    get:
        set {_s} to expression-1
        replace every "||" with "||&r&5" in {_s}
        set {_lores::*} to {_s} split at "||"
        return {_lores::*}
        
options:
    lore: Line 1 || Line 2
 
command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore old lore "{@lore}"
        open {bankmenu} to player
 
[doublepost=1584343751,1584343401][/doublepost]

and if u use skript-mirror 2.0

Code:
expression:
    patterns:
        old lore %text%
    get:
        set {_s} to expression-1
        replace every "||" with "||&r&5" in {_s}
        set {_lores::*} to {_s} split at "||"
        return {_lores::*}
       
options:
    lore: Line 1 || Line 2
 
command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore old lore "{@lore}"
        open {bankmenu} to player
At the moment i don't want any addon, but thanks
 
At the moment i don't want any addon, but thanks

Oh i send it wrong btw idk if u seen it but:


Code:
options:
 
    lore: "Line 1 " and "Line 2"
 
command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore {@lore}
        open {bankmenu} to player
 
Oh i send it wrong btw idk if u seen it but:


Code:
options:
 
    lore: "Line 1 " and "Line 2"
 
command /bank [<text>]:
    trigger:
        set {bankmenu} to chest inventory with 4 rows named "Bank"
        set slot 11 of {bankmenu} to chest named "Coins" with lore {@lore}
        open {bankmenu} to player
Thank you very much, maybe it is what I need
 
  • Like
Reactions: Lego_freak1999
Status
Not open for further replies.