sweetgum83/scripts/reactor/9108000.js

16 lines
654 B
JavaScript
Raw Permalink Normal View History

2024-01-19 08:56:28 +00:00
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var react = rm.getReactor().getMap().getReactorByName("fullmoon");
var stage = parseInt(eim.getProperty("stage")) + 1;
var newStage = stage.toString();
eim.setProperty("stage", newStage);
react.forceHitReactor(react.getState() + 1);
if (eim.getProperty("stage") === "6") {
rm.mapMessage(6, "Protect the Moon Bunny!!!");
var map = eim.getMapInstance(rm.getReactor().getMap().getId());
map.allowSummonState(true);
map.spawnMonsterOnGroundBelow(9300061, -183, -433);
}
}
}