Jump to content

Tuske GUI help


Nd_

Recommended Posts

Code:

on right click:
      if player is holding a nether star named "&5Potion Menu" with lore "&5Get your potions":
            player is in world "ul_KitPVP":
                  open virtual chest inventory with size 1 named "&5Potions" to player
                  format gui slot 1 of player with splash potion of harming named "Splash Potion Of Harming" with lore "&5You have: %{%player's uuid%.splashpotionofharming}% Splash Potions Of Harming" to close and run:
      if {%player's uuid%.splashpotionofharming} is less than 1:
            message "&4You don't have any Splash Potions Of Harming"
      else:
            give a splash potion of harming to the player
            subtract 1 from {%player's uuid%.splashpotionofharming}
                

It says it doesn't understand the condition or effect.

Edited by Nd_
Link to comment
Share on other sites

10 hours ago, Nd_ said:

Code:


on right click:
      if player is holding a nether star named "&5Potion Menu" with lore "&5Get your potions":
            player is in world "ul_KitPVP":
                  open virtual chest inventory with size 1 named "&5Potions" to player
                  format gui slot 0 of player with splash potion of harming named "Splash Potion Of Harming" with lore "&5You have: %{%player's uuid%.splashpotionofharming}% Splash Potions Of Harming" to close and run:
      if {%player's uuid%.splashpotionofharming} is less than 1:
            message "&4You don't have any Splash Potions Of Harming"
      else:
            give a splash potion of harming to the player
            subtract 1 from {%player's uuid%.splashpotionofharming}
                

It says it doesn't understand the condition or effect.

please give us the full error so we know where the problem is.

command /giveinfo:
    trigger:
        send "--------------------------------------------"
        send "IGN:
crazymarty"
        send "I am a
decent skripter."                                     
        send "Discord: 
crazymarty#1802"
        send "--------------------------------------------"

Link to comment
Share on other sites

Use any of these:

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run "command"

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to be unstealable

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run [make player execute "command"]

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run [make console execute "command"]

Link to comment
Share on other sites

2 hours ago, DogMeat494 said:

Use any of these:

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run "command"

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to be unstealable

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run [make player execute "command"]

format slot 1 of player with splash potion of harming named "{name}" with lore "{lore}" to close and run [make console execute "command"]

Your code is incorrect. It should be format gui slot of player. and @Nd_ the code error and the code, both are different. If you're editing the skript, you should edit it here too.

command /giveinfo:
    trigger:
        send "--------------------------------------------"
        send "IGN:
crazymarty"
        send "I am a
decent skripter."                                     
        send "Discord: 
crazymarty#1802"
        send "--------------------------------------------"

Link to comment
Share on other sites

On 7/23/2019 at 1:53 AM, crazymarty said:

Your code is incorrect. It should be format gui slot of player. and @Nd_ the code error and the code, both are different. If you're editing the skript, you should edit it here too.

it works with or without “gui”:

format slot of player

format gui slot of player

 

@Nd_ at the end of the condition, it should be this:

 “to close then run” not “to close and run” (not sure if this will fix it)

Link to comment
Share on other sites

On 7/24/2019 at 8:34 AM, DogMeat494 said:

it works with or without “gui”:

format slot of player

format gui slot of player

 

@Nd_ at the end of the condition, it should be this:

 “to close then run” not “to close and run” (not sure if this will fix it)

Sadly, it doesn't 😞

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...