#Seperate GUI for different players

1 messages · Page 1 of 1 (latest)

autumn star
#

Metadata

#
  • variables
grand lichen
#

You can make guis many different ways. The two most common are using metadata in normal skript or getting an addon like skript-gui

somber raptor
#

I was thinking of using vanilla-gui's, but lets say, an item is set to a barrier unless the player has something, would it better to detect the item and then do an if statement to change it?

#

or..

grand lichen
#

Wdym

#

Like if they have an item?

#

Or permission

somber raptor
#

Like

grand lichen
#

But yeah, you can just use if statements to set items

somber raptor
#

wood sword --> stone sword (if player doesnt have wood sword set to barrier)

grand lichen
#

Ye

#

So you can have an if statement checkingnif they have a wood sword

#

And then set the item based on that

somber raptor
#

Okay.. but for every item I will need to write an if statement correct?

grand lichen
#

I mean

#

Theres probably a way to make it flexible

#

Eith variables and stuff

#

But yeah

#

You can hard code all of the ifs

somber raptor
#

Gotcha..

#

Alright then..

#

Ill get to work i guess 😅

#

One more thing, instead of doing this:

#

Can I do a detect for both names? and how would I?

#

@grand lichen (Sorry for tag) ⬆️

grand lichen
#

You cam put both in the same event

somber raptor
#

so "name" or "name"?

#

or

grand lichen
#

Uh

#

I think thats fine

#

If you wanna do the same thing

somber raptor
#

It spams the message twice

grand lichen
#

Send code

somber raptor
#
    if display name of event-entity is "&1&lBlue Shop" or "&c&lRed Shop":
        message "test" to player 
        cancel event```
grand lichen
#

Uh

#

Weird

#

And it disnt send twice beofre

somber raptor
grand lichen
#

That shouldnt change anything though

#

Amd you got rid of the other code?

somber raptor
#

Yes

grand lichen
#

Yeah, i have no clue whays causing that

#

You might just have to make 2 ifs

somber raptor
#

Oh..

#

I found the issue I think

grand lichen
#

What

somber raptor
#

I swapped the message, and its saying :"test" and "new message"

#

so maybe somewhere else

grand lichen
#

Oh

somber raptor
#

in a different file

grand lichen
#

So yeah

somber raptor
#

let me see

grand lichen
#

Probbaly

#

Did you delete the old file

#

Or judt change the code

somber raptor
#

Yea...

#

I dont have any other code

#

what is this

grand lichen
#

If you deleted it

#

Without reloading it

somber raptor
#

I reloaded ALL script files and its gone

#

odd

#

its fixed now tho

grand lichen
#

Ye, it cant reload cuznits not there

somber raptor
#

like the 2nd msg is gone

grand lichen
#

Oh

#

Cool

somber raptor
#

anyways

#

thanks!