Solved [Self Solved] Set lore to variable

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

Crocie

Member
Jul 2, 2021
36
0
6
16
i want to set the first line lore of event-item (paper) to a variable

Code:
on rightclick holding paper:
    if player is holding paper named "&cBanknote":
        set {_bank} to lore of event-item # Problem Here

Full Script

Code:
command /withdraw <integer>:
    trigger:
        if arg 1 is set:
            if {eco.%player%} is greater than or equal to arg 1:
                if arg 1 is more than 0:
                    give player paper named "&cBanknote" with lore "%arg 1%"
                    remove arg 1 from {eco.%player%}
                else:
                    send "try again"
            else:
                send "try again"
        else:
            send "try again"

on rightclick holding paper:
    if player is holding paper named "&cBanknote":
        set {_bank} to lore of event-item
 
Status
Not open for further replies.