This script allows you to create events using a “reference event”. The purpose is to allow you to create an event once on a map and re-use it across multiple maps.
This is useful when you have multiple copies of the same event, but you want to avoid having to change each event manually if you decide to change a command or graphic.
For example, suppose you were implementing on-screen enemies where touching an enemy event will begin a battle. If you want to have 20 of these enemies on the map that all do the same thing, rather than copy-pasting one event 20 times, you would first create one enemy event with all of the logic, and then create a second event that will treat the enemy event as the reference event. Then you would copy the second event again and again, so that if you decide to change the enemy event, you don’t have to delete all of the
enemy events and redo the copy paste process.
Script: download here
In the script editor, install this script below Materisls and above Main
To designate a reference event, create a comment on the first page of an event
of the form
<reference event: event_id map_id>
`event_id` is the ID of the reference event `map_id` is the ID of the map of the reference event
If you don’t specify a map ID, it is assumed to be the current map.
When the map is loaded, the event will be replaced by the reference event (except its ID)