Reformat and clean up reactor and base scripts

This commit is contained in:
P0nk
2021-09-09 23:38:09 +02:00
parent 3f43fe82d0
commit d9590078f5
231 changed files with 1192 additions and 1075 deletions

View File

@@ -1,21 +1,25 @@
var fid = "glpq_s";
function action() {
rm.mapMessage(6, "All stirges have disappeared.");
rm.getMap().killAllMonsters(true);
eim.setIntProperty(fid, 777);
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);
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);
var eim = rm.getEventInstance();
if (eim.getIntProperty(fid) == 5) {
action();
}
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}