09-16-2009, 10:58 PM
Obtain??
Common Events are called by map events are generally parallel processes. I mean you may be able to 'pass' the id of a common event into a script call to run an event (if you're good enough), but I never heard of one needing to retrieve the ID of a common event itself.
You could set up an event in each common event:
CONTROL VARIABLES[0001: Event-ID] set = '1'
or whatever for each common event.
Then when the common event is run, it changes that one variable (#1) to that value. Then within the script, you can access that through $game_variables.
Common Events are called by map events are generally parallel processes. I mean you may be able to 'pass' the id of a common event into a script call to run an event (if you're good enough), but I never heard of one needing to retrieve the ID of a common event itself.
You could set up an event in each common event:
CONTROL VARIABLES[0001: Event-ID] set = '1'
or whatever for each common event.
Then when the common event is run, it changes that one variable (#1) to that value. Then within the script, you can access that through $game_variables.