Hi all - again!
Simple question (hopefully) this time. Is there a script call to check if a common event by a certain ID exists?
I can only seem to find specific script calls to reserve, clear, or otherwise use commands from a common event - but not to directly reference it by its ID to check if it exists.
The reason I'd like to know is because I'm working on my first plugin, wherein one function is that common events may be called via variables that the user sets up in the parameters. It would be no problem if there was only the option to directly choose a common event (since I can set up the relevant plugin parameter to allow choosing directly from the database common events list) - but if the ID is specified by a variable, and that variable ends up with a value of which no common event ID exists, it's a problem as the game crashes if it attempts to run an undefined/nonexistent common event.
If there's no such script call to check this, it's not a huge deal as I could just leave the responsibility on the user to make sure they're setting their variables to correct/valid values... although it would be ideal to be able to provide a console.log error informing them what went wrong.
Thanks in advance 🙂
Simple question (hopefully) this time. Is there a script call to check if a common event by a certain ID exists?
I can only seem to find specific script calls to reserve, clear, or otherwise use commands from a common event - but not to directly reference it by its ID to check if it exists.
The reason I'd like to know is because I'm working on my first plugin, wherein one function is that common events may be called via variables that the user sets up in the parameters. It would be no problem if there was only the option to directly choose a common event (since I can set up the relevant plugin parameter to allow choosing directly from the database common events list) - but if the ID is specified by a variable, and that variable ends up with a value of which no common event ID exists, it's a problem as the game crashes if it attempts to run an undefined/nonexistent common event.
If there's no such script call to check this, it's not a huge deal as I could just leave the responsibility on the user to make sure they're setting their variables to correct/valid values... although it would be ideal to be able to provide a console.log error informing them what went wrong.
Thanks in advance 🙂