#2 Site in a Skript

1 messages · Page 1 of 1 (latest)

craggy hazel
#

to my knowledge the simple way you can do it is when you click on that button that leads to the next page it closes the player's inventory and creates a new gui and opens the gui to the player

#
    trigger:
        set {_e} to a new chest inventory with 3 rows named "test"
        set slot 0 of {_e} to arrow named "next page"
        open {_e} to player
on inventory click:
    name of player's inventory is "test" or "next page":
        cancel event
        event-slot is arrow named "next page":
            close player's inventory
            set {_e} to a new chest inventory with 3 rows named "next page"
            set slot 0 of {_e} to dirt named "hi this is ur next page"
            open {_e} to player```
#

this is an example

rocky berry
#

things in curved brackets are called variable and store data

craggy hazel
#

nono

rocky berry
#

it is a variable that represents a gui

craggy hazel
#

{_e} is a variable that stores the gui basically in it

#

if that makes sense

#

the {_e} can be anything

rocky berry
#

the _ makes it a local variable and resets it after the skript ends

#

it's on line 4

craggy hazel
#

no problem

#

you don't need to my dms are open to anybody

#

feel free to dm me