1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Colour in arguments

Discussion in 'Skript' started by Lebster, Aug 14, 2019 at 6:58 PM.

  1. L

    Lebster Member

    Joined:
    Wednesday
    Messages:
    2
    Likes Received:
    0
    I'm trying to make it so that people can specify an argument for the lore of an item, but it doesn't accept colours.

    Code (Text):
    1. command /setlore [<string>]:
    2.     trigger:
    3.         set {lore} to coloured arg-1
    How do I fix this?
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    164
    Likes Received:
    15
    Try [<colored text>]
     
  3. L

    Lebster Member

    Joined:
    Wednesday
    Messages:
    2
    Likes Received:
    0
    It says its not a type
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    164
    Likes Received:
    15
    Try only [<text>]
     
  5. LukynkaCZE

    LukynkaCZE Member

    Joined:
    May 12, 2019
    Messages:
    21
    Likes Received:
    0
    Hi, Try this:

    Code (Text):
    1. set the name of player's tool to "&r%colored arg-1%"
     
  6. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    164
    Likes Received:
    15
    He wants to set the lore, just in case you missed it

    Code (Text):
    1. command /setlore [<text>]:
    2.     trigger:
    3.         set lore of player's tool to "&r%colored arg-1%"
     
Loading...