Hi, first post here, I'm just beginning to get my feet wet with VX.
I have two questions, one simple and one more complex.
Simple question: what's the best way to set up an autorun event on a map so that the event will always run exactly once when the map is loaded, even if the player comes back to that same map again?
I've figured out the set-self-switch deal (where you set an event to autorun, have it change a self-switch to ON at the end of the event, and add a new event page with the condition set for that self-switch as ON) so a given autorun event doesn't loop endlessly.
But, I'd like to have an event run once, every time the player enters that map. The set-self-switch approach means it runs once, then never runs again on subsequent map loads.
My guess is that I'm missing something really obvious, so I could use a sanity check!
Complex question: what's the best way to set up a light/darkness system so that the player needs to use items (torches, lanterns, flaming heads of enemies soaked in pitch and lit ablaze) to see in underground or unlit maps?
I'm slowly noodling this out by myself, and trying to do it properly, so that it still works if I go back and add teleports, portals or rapid travel between maps later on.
What I'm doing now is setting a control-switch for "Light" to ON or OFF in an autorun event for each map, with a tiny bit of branching logic around it. Should I plunge into a scripted solution, or rely on events like this?
On the other hand, I'm using different tint levels for different maps, so it may make more sense to not bother with switches, and just go with a variable for "ambient light level" and script that to set the tint + light/darkness level for a map.
I'd appreciate any responses, suggestions, or ideas, especially if you've done this sort of thing before or know of an existing solution.
Thanks!