Need equivalent of "Call Event"

I'm following a tutorial I found for the old RPG Maker 2003 that I'm trying to follow.  Everything was going fine until I reached a part of the tutorial that uses the "Call Event" feature.

I know there is a script that can be used, but I'm not sure it will do what I need exactly.  I got the impression that I would have to call specific events by their ID's (sans variables), but I want to call them based on ID's that are stored within variables.

The tutorial shows:

=====================

Event Refrerenced from Variables:

-Event Stored in: [VARIABLE A]

-Event Page stored in: [VARIABLE B]

=====================

So I need it to be able to detect the Event ID as well as a specific Page within the the Event.

Anyway I can go about this?
$game_map.events[$game_variables[A]].start


(where A is the id of your variable) will start an event running on the current map. Obviously you can't start an event on a different map, as they're not loaded into memory. You also can't tell it to run a specific page - the conditions on the pages will determine which page will run.


You would need some script mods to the Game_Event class to allow you to start any page on a given event.
Thanks!  So, would I just treat each pages I wanted affected as separate events then? 
It depends on what it is you're trying to achieve. Since you didn't actually state what your goal is, there's no way of knowing whether that will even work, let alone be the best way of doing it.


What I mean is, instead of saying "how do I do xyz with a script?" explain what you're trying to achieve in the game and why you think "doing xyz with a script" is the only or best way of doing it. It may well end up being that way, but it may also be that we can help you find a better way to do it 🙂

Original thread: https://forums.rpgmakerweb.com/threads/need-equivalent-of-call-event.16251/