Reformat and clean up portal scripts

This commit is contained in:
P0nk
2021-09-09 23:35:59 +02:00
parent d893309b4f
commit a78ca88a02
435 changed files with 2712 additions and 2287 deletions

View File

@@ -1,20 +1,21 @@
function enter(pi) {
var react = pi.getMap().getReactorByName("mob0");
if (react.getState() < 1) {
react.forceHitReactor(1);
var eim = pi.getEventInstance();
eim.setIntProperty("glpq1", 1);
pi.getEventInstance().dropMessage(5, "A strange force starts being emitted from the portal apparatus, showing a hidden path once blocked now open.");
pi.playPortalSound(); pi.warp(610030100, 0);
pi.playPortalSound();
pi.warp(610030100, 0);
pi.getEventInstance().showClearEffect();
eim.giveEventPlayersStageReward(1);
return true;
}
pi.getEventInstance().dropMessage(5, "The portal apparatus is malfunctional, due to the last transportation. The finding another way through.");
return false;
}