NeMV - On Map Load 4 / 5

Nekoyoubi

This plugin gives you a simple notetag eval on your maps that will run when the map is loaded.


Tags nemv map load eval events

Introduction

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).

Usage

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...

<On Load>
events.forEach(function(event) {
if (event.displayName == "Sneak Thief") event._opacity = 32;
});
</On Load>

<oml>
if (v[123] > 4)
$gameTemp.reserveCommonEvent(56);
</oml>

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.

Support

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!

Available versions
This version doesn't have plugin dependencies.

User reviews (1)


imelkit 4

05/19/2016 12:19:29

thanks, it's helpful :)