This plugin gives you a simple notetag eval on your maps that will run when the map is loaded.
This plugin gives you a simple notetag eval on your maps that will run when the map is loaded. Optionally, you can also setup up to ten evals that will run each time any map is loaded. Keep in mind that map loading happens many times for a given walk-through. Each time you open the menu, for instance, the map load will trigger again. This should not be used for doing something merely the first time you load a map, but more for things you need to do on each reload of the map (typically event settings).
Add load evals to your maps via the following notetag:
Map > Notebox > <ON LOAD>code</ON LOAD>
It's as easy as that. Your eval code will now run everytime that map is loaded. Also note that the "ON LOAD" can be replaced with "OML", "MAP LOAD", or "ON MAP LOAD" to your discretion.
Here are a couple of examples...
if (event.displayName == "Sneak Thief") event._opacity = 32;
if (v > 4)
In the first example, any events with the display name of "Sneak Thief" will take on a very transparent appearance. The second example runs a common event if a variable is greater than four.
Should this plugin not work for you for any reason, please notify me by creating a GitHub issue, emailing me at [email protected], or message me in any social convention you happen to see me in.
Thanks, and happy loading!