Hey, sorry for the dumb question but I've looked around and can't seem to find an answer that works.
Basically all I want is to be able to set a variable (#13) to an event's ID when I interact with it.
Right now I'm just using it as a debug, so that when I "talk" to the object it will pop up with text that contains it's ID.
I see that this exists:
and I'm assuming I replace "var" with 13, but what do I replace "value" with? I've tried event_id based on another thread, eventId based on some things in the scripting list, and various other variations of capitalization and underscores. All of them cause the game to crash and say "[whatever I was trying] is not defined".
I get the feeling that I'm going about this all wrong.
It seems like it should be easy once I know it, but I don't. :(
Thanks in advance for any help.
Basically all I want is to be able to set a variable (#13) to an event's ID when I interact with it.
Right now I'm just using it as a debug, so that when I "talk" to the object it will pop up with text that contains it's ID.
I see that this exists:
Code:
$gameVariables.setValue(var, value);
I get the feeling that I'm going about this all wrong.
It seems like it should be easy once I know it, but I don't. :(
Thanks in advance for any help.