Been trying to complete the Trials. I can kill the 2nd Trial Guardian with little effort, but the 3rd Trial never triggers. Specifically, when I kill the 2nd Guardian, the Trial Master doesn’t even give me a message. I am doing this in JavaScript. My code should not be a factor as it runs with no errors and doesn’t target anything specifically. Here it is for good measure:
var destination, target;
loop {
destination = target = null;
if (this.gold >= 20) {
this.summon("soldier");
}
gFlag = this.findFlag("green");
bFlag = this.findFlag("black");
vFlag = this.findFlag("violet");
if (gFlag) {
destination = gFlag.pos;
if (this.distanceTo(gFlag) < 3) {
this.pickUpFlag(gFlag);
}
}
arrEnemies = this.findEnemies();
nearest = this.findNearest(arrEnemies);
target = nearest;
allies = this.findFriends();
if (!!(iFriend = allies.length)) {
while (--iFriend >= 0 && !!(cFriend = allies[iFriend])) {
if (target) {
this.command(cFriend, "attack", target);
}
else if (this.distanceTo(cFriend) > 10) {
this.command(cFriend, "move", this.pos);
}
}
}
if (target) {
while (target.health> 0) {
this.attack(target);
}
}
else if (destination) {
this.move(destination);
}
else {
target = this.findNearest(this.findItems());
if (target) {
this.move(target.pos);
}
}
}
UPDATE:
I have noticed that sometimes it doesn’t register a completed 1st Trial either. This happens most often when I submit after a code change.
UPDATE 2:
It should also be noted that it mostly works during a normal “run”, just not during a “submit”.