Implemented CWKPQ

Made CWKPQ fully-functional, using the Expedition system (won't work
with the lobby system).
This commit is contained in:
ronancpl
2017-06-30 01:26:47 -03:00
parent a7beff1bb4
commit ca3838050d
126 changed files with 50072 additions and 49743 deletions

View File

@@ -0,0 +1,22 @@
function action() {
var flames = Array("g3", "g4", "g5", "h3", "h4", "h5", "i3", "i4", "i5");
for (var i = 0; i < flames.length; i++) {
rm.getMap().toggleEnvironment(flames[i]);
}
}
var fid = "glpq_f6";
function touch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 0) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
}
function untouch() {
var eim = rm.getEventInstance();
if(eim.getIntProperty(fid) == 1) action();
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
}