thevirtualpotato
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by thevirtualpotato
-
-
22 minutes ago, iOmega__ said:
Whoops, forgot to edit the GUI after copy pasting; just change all the parts with "player" to {_p} and it should function. Sorry about that!
im sorry but would you mind writing it out for me? im still missing something apparently...
-
1 hour ago, iOmega__ said:
You can make the GUI into a function, and activate the function when you close it.
Example:
function openGUI(p: player): open virtual chest inventory with size 5 named "&0Set Up" to player format gui slot 8 of player with paper named "&4&lImportant!" with lore "&c&lDO NOT CLOSE THIS GUI" format gui slot 20 of player with map named "Clans" to run: execute player command "/1" format gui slot 22 of player with iron sword named "Kits" to run: execute player command "/2" format gui slot 24 of player with book named "Receive Books" to run: execute player command "/3" on inventory close: if name of event-inventory contains "&0Set Up": openGUI(player) command /gui: trigger: openGUI(player)
at this point I have no idea what is going on lol it gave me this when i reloaded the script.
-
10 minutes ago, TheGoose said:
They indeed cannot be cancelled. This is an option
on inventory close: if name of event-inventory contains "<name here>": open event-inventory to player
ok that kinda worked. When I try to close the inventory it reopens once. then if i try to close it again it closes like normal.
it is also saying that the script infinitely (or excessively) repeated itsself.
-
11 minutes ago, iOmega__ said:
on inventory close: if name of event-inventory contains "<name here>": cancel event
Give that a go
it says that an on inventory close event cannot be cancelled?
-
I'm very much a beginner at this so please help. I'm trying to make it so that if my gui is closed it opens again. Basically make it so that the gui is unclosable until the very end. This is going to be a setup type of thing where the player must going a clan and select a kit before playing on the survival server. I have looked at other old forums on unclosable guis but nothing seems to work. Maybe its because its an older version? This is what I have so far:
Spoileron join:
if {Joins::*} does not contain player's uuid:
give player stone sword
give player compass
give player 16 torch
give player crafting table
give player oak boat
add player's uuid to {Joins::*}
set join message to "&7(&a+&7) &b%player%"
execute player command "/join"
else:
set join message to "&7(&a+&7) &r%player%"
wait 3 ticks
send "&bWelcome back &a%player%&b!&r"on quit:
set leave message to "&7(&4-&7) &r%player%"command /join:
trigger:
open virtual chest inventory with size 5 named "&0Set Up" to player
format gui slot 8 of player with paper named "&4&lImportant!" with lore "&c&lDO NOT CLOSE THIS GUI"
format gui slot 20 of player with map named "Clans" to run:
execute player command "/1"
format gui slot 22 of player with iron sword named "Kits" to run:
execute player command "/2"
format gui slot 24 of player with book named "Receive Books" to run:
execute player command "/3"Also I have Skript, SkQuery, and TuSKe.
-
Looks like they're down for everyone. Probably tweaking some stuff.
Skript: Make a GUI Unclosable?
in Discussion
Posted
alright so i figured out how to make it unclosable but now after it reopens the gui is completely blank...
command /join:
trigger:
open virtual chest inventory with size 5 named "&0Set Up" to player
format gui slot 8 of player with paper named "&4&lImportant!" with lore "&c&lDO NOT CLOSE THIS GUI"
format gui slot 20 of player with glowing map named "Clans" to run:
execute player command "/1"
format gui slot 22 of player with glowing iron sword named "Kits" to run:
execute player command "/2"
format gui slot 24 of player with glowing book named "Receive Books" to run:
execute player command "/3"
on inventory close:
if name of event-inventory contains "&0Set Up":
wait 1 tick
open event-inventory to player