#Adding GUI items to code

1 messages · Page 1 of 1 (latest)

mental iris
#

I was wondering if there was a way to add the items inside the gui, to the code, in a variable. When a person puts something inside the gui, it is store under a variable.

radiant ridge
#

yeah

#

just do an inventory click event

#

you can use inventory action to see if they put an item into the inv

#

if so, then put it in a var

#

alternatively, don't do anything until they close the inv and then read all the items in the inv during the inventory close event

mental iris
# radiant ridge yeah

is this the same process for adding it to a list? if I add it to a list is there a way to pull something inside from it with numbers?

radiant ridge
#

sure

#

just use {list::*} for all elements, {list::index} for elements with specific indices

#

eg: {list::1} for the element w/ index 1