sweetgum83/scripts/reactor/6109013.js
2024-01-19 03:56:28 -05:00

25 lines
536 B
JavaScript

var fid = "glpq_s";
function action() {
rm.mapMessage(6, "All stirges have disappeared.");
rm.getMap().killAllMonsters(true);
eim.setIntProperty(fid, 777);
}
function touch() {
var eim = rm.getEventInstance();
if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}