skript trigger becoming a condition idk why help

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

yoni

New Member
Jun 18, 2021
9
0
1
23
on rightclick:
if player's held item is compass named "&c&l":
trigger:
open virtual chest with 3 rows named "&c&lGame Menu" to player
wait 3 ticks
loop integers between 0 9 of player's current inventory - 1:
loop integers between 17 27 of player's current inventory - 1:
set slot loop-number of player's current inventory to light green stained glass pane named " "
format slot 11 of player with beacon named "Events" to run
make player execute command "/mvtp events"

anyone knows why trigger is becoming a condition?
 
yes, because you wrote something in there that doesn't belong there. But at least you are using TuSKe GUIs and not the ones from SKQuery.
Code:
on rightclick:
  if player's held item is a compass named "&c&l":
    open virtual chest inventory with size 3 named "&c&lGame Menu" to player
    format gui slot (integers from 0 to 9) of player to light green stained glass pane named " "
    format gui slot (integers from 17 to 27) of player to light green stained glass pane named " "
    format slot 11 of player with beacon named "Events" to close then run player command "/mvtp events"
 
yes, because you wrote something in there that doesn't belong there. But at least you are using TuSKe GUIs and not the ones from SKQuery.
Code:
on rightclick:
  if player's held item is a compass named "&c&l":
    open virtual chest inventory with size 3 named "&c&lGame Menu" to player
    format gui slot (integers from 0 to 9) of player to light green stained glass pane named " "
    format gui slot (integers from 17 to 27) of player to light green stained glass pane named " "
    format slot 11 of player with beacon named "Events" to close then run player command "/mvtp events"
hi i get an error of cant understnad condition/effect on all 3 format gui slot
 
Okay, seems like you don't have TuSKe installed, or do you?
i do have TuSKe
upload_2021-6-23_14-41-10.png
 
Status
Not open for further replies.