Solved Cant add a lore in a gui [TuSKe]

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

bobby2002

Active Member
Nov 24, 2017
50
0
0
21
Code:
command /test:
trigger:
open virtual chest inventory with size 1 named "test" to player
wait 3 ticks
make gui slot 2 with diamond sword named "PVP" with lore "Hello":
broadcast "test"

console error:
11:46:04 [SEVERE] can't understand this condition: 'make gui slot 2 with diamond sword named "PVP" with lore "Hello"' (warpmenu.sk, line 50: make gui slot 2 with diamond sword named "PVP" with lore "Hello":')
11:46:04

[Skript] Encountered 1 error while reloading warpmenu.sk!

so im trying to make it so it says name and has a lore under it but it just comes up with that error

 
You need to include player in the line too. After "make gui slot 2", add "to player"
 
17:26:53

[Skript] Reloading profile.sk...
17:26:53 [SEVERE] can't understand this condition: 'make gui slot 2 to player with diamond sword named "pvp" with lore "hello"' (profile.sk, line 9: make gui slot 2 to player with diamond sword named "pvp" with lore "hello":')
17:26:53

[Skript] Encountered 1 error while reloading profile.sk!

command /profile <player>:
aliases: profiles
trigger:
open virtual chest inventory with size 1 named "%argument 1% Profile" to player
wait 5 ticks

make gui slot 2 to player with diamond sword named "pvp" with lore "hello":
message "hello"

 
Follow the provided syntax. "of player" not "to player", that was probs a typo?
code_language.skript:
(format|create|make) [a] gui slot %integers% of %players% with %item stack% [to [do] nothing]
 
Follow the provided syntax. "of player" not "to player", that was probs a typo?
code_language.skript:
(format|create|make) [a] gui slot %integers% of %players% with %item stack% [to [do] nothing]
It still comes up with the same error tho
 
Follow the provided syntax. "of player" not "to player", that was probs a typo?
code_language.skript:
(format|create|make) [a] gui slot %integers% of %players% with %item stack% [to [do] nothing]
Correct, my bad on that part.

The code also needs a trigger to the slot. If you look in the document, it doesn't end with the name of the item. It ends with either "to do nothing" or "to run:" or any others provided in the document. Since you want to trigger the message part too, add "to run:" at the end of the slot line. Then, add "to player" after "message "hello" " you need to add a to player because you need to tell Skript WHO to send the message to.
 
Last edited:
Try this test code.
code_language.skript:
command /test:
    trigger:
        open virtual chest inventory with size 2 named "test" to player
        make gui slot 0 of player with diamond to do nothing
 
Correct, my bad on that part.

The code also needs a trigger to the slot. If you look in the document, it doesn't end with the name of the item. It ends with either "to do nothing:" or "to run:" or any others provided in the document. Since you want to trigger the message part too, add "to run:" at the end of the slot line. Then, add "to player" after "message "hello" " you need to add a to player because you need to tell Skript WHO to send the message to.
It works without the “with lore”
 
It works without the “with lore”
you cant put lore on an inventory name if thats what you're trying to do. you can put it on the item though
code_language.skript:
make gui slot 0 of player with diamond named " " with lore "derp" to do nothing
 
you cant put lore on an inventory name if thats what you're trying to do. you can put it on the item though
code_language.skript:
make gui slot 0 of player with diamond named " " with lore "derp" to do nothing
Is there a bug with 1.12.2? As I put the code and it comes with doesn’t understand the condition/effect
 
Try replacing make with create or format. Otherwise, I'm not sure.
 
oh you're on 1.12? do you have the most recent version of Tuske then as well?
For all my gui's I use the advanced gui. perhaps try this
code_language.skript:
command /test:
    trigger:
        create gui with virtual chest with size 6 named "test":
            make next gui slot with diamond named "test" with lore "othertest"
            open last gui to player

if that doesnt work then I'm at a loss
 
oh you're on 1.12? do you have the most recent version of Tuske then as well?
For all my gui's I use the advanced gui. perhaps try this
code_language.skript:
command /test:
    trigger:
        create gui with virtual chest with size 6 named "test":
            make next gui slot with diamond named "test" with lore "othertest"
            open last gui to player

if that doesnt work then I'm at a loss
Is 1.8.2 the newest version?
 
Status
Not open for further replies.