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!

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

Random lore item

Discussion in 'Requests' started by Sarjke, Dec 19, 2020.

  1. Sarjke

    Sarjke Member

    Joined:
    Dec 19, 2020
    Messages:
    1
    Likes Received:
    0
    Why with randomizer script doesn't work?


    trigger:
    set {_sword} to diamond sword named "&aTest"
    set {_randa} to a rounded random integer between 1 and 10
    set 1st line of lore of {_sword} to "&cУронь: %{_randa}%"
    give player 1 of {_sword}
     
  2. bpitcher2013

    bpitcher2013 Member

    Joined:
    Jan 25, 2020
    Messages:
    14
    Likes Received:
    1
    Code (Text):
    1. command /randosword:
    2.     trigger:
    3.         set {_a} to diamond sword
    4.         set {_random} to a random integer between 1 and 10
    5.         set player's tool to air
    6.         set {_a}'s lore to "&cУронь: {_random}"
    7.         give player {_a}
     

Share This Page

Loading...