I have this POC of a modified + upgraded version of the inventory example, but while getting some help with some of the code, I ran into a problem when functions get involved.
So, I want to have this function get data to put items into the inventory directly by receiving data called in the function and moving the data to an external event.
Okay, I’ve done some more experimenting, like moving the syntax from the link directly into the function, but the button still doesn’t work. I think I might’ve found one of the culprits:
Since nobody has replied yet, I’ll take this silence as a way of saying what I’m trying to achieve here is impossible. In that case, I’ll just make the button spawn the item on top of the player instead
I don’t know what your problem is but if you want to put a string instead of Number, use Change the text of variable
[edit]
Its Change the string of variable for global and scene variable
but text for object variable
Ooooh, I was trying to get a string with an int variable, and an int with a string variable!
I switched the places of these two, and now it works perfectly!
Thanks ^o^