Random lore item

  • 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 community!

    Now, what are you waiting for? Join the community now!

Sarjke

Member
Dec 19, 2020
1
0
1
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}
 
Code:
command /randosword:
    trigger:
        set {_a} to diamond sword
        set {_random} to a random integer between 1 and 10
        set player's tool to air
        set {_a}'s lore to "&cУронь: {_random}"
        give player {_a}