CWKPQ inclusion
Added some CWKPQ imports for the server. Enabled basic mechanics for a run, but still WIP.
This commit is contained in:
28
scripts/portal/glpqPortal2.js
Normal file
28
scripts/portal/glpqPortal2.js
Normal file
@@ -0,0 +1,28 @@
|
||||
function enter(pi) {
|
||||
var eim = pi.getEventInstance();
|
||||
if (eim != null) {
|
||||
pi.warp(610030300, 0);
|
||||
|
||||
if (eim.getIntProperty("glpq3") < 5 || eim.getIntProperty("glpq3_p") < 5) {
|
||||
if(eim.getIntProperty("glpq3_p") == 5) {
|
||||
pi.mapMessage(6, "Not all Sigils have been activated yet. Make sure they have all been activated to proceed to the next stage.");
|
||||
} else {
|
||||
eim.setIntProperty("glpq3_p", eim.getIntProperty("glpq3_p") + 1);
|
||||
|
||||
if(eim.getIntProperty("glpq3_p") == 5) {
|
||||
pi.mapMessage(6, "The Antellion grants you access to the next portal! Proceed!");
|
||||
eim.showClearEffect(610030300, "3pt", 2);
|
||||
} else {
|
||||
pi.mapMessage(6, "An adventurer has passed through! " + (5 - eim.getIntProperty("glpq3_p")) + " to go.");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
pi.getPlayer().dropMessage(6, "The portal at the bottom has already been opened! Proceed there!");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user