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

@@ -3,19 +3,21 @@
Map: Mushroom Castle - Deep Inside Mushroom Forest (106020300)
Right Portal
*/
function enter(pi){
if (pi.isQuestStarted(100202)) {
pi.playPortalSound(); pi.warp(106020400, 2);
return true;
} else if (pi.hasItem(4000507)) {
pi.gainItem(4000507, -1);
pi.message("You have used a Poison Spore to pass through the barrier.");
pi.playPortalSound(); pi.warp(106020400, 2);
return true;
}
pi.message("The overgrown vines is blocking the way.");
return false;
}
function enter(pi) {
if (pi.isQuestStarted(100202)) {
pi.playPortalSound();
pi.warp(106020400, 2);
return true;
} else if (pi.hasItem(4000507)) {
pi.gainItem(4000507, -1);
pi.message("You have used a Poison Spore to pass through the barrier.");
pi.playPortalSound();
pi.warp(106020400, 2);
return true;
}
pi.message("The overgrown vines is blocking the way.");
return false;
}