Hi, I have been testing your extra levels, and I have found that they documented with outdated info, it makes quite difficult to pass a level like that. (In the emphasis on aim)
A way to explore the unit’s abilities (methods and attributes) would be fantastic, as that would make easier to know what is happening or what is wrong. This is why comparing unit.team==“humans” didn’t work until I realized the print statement was calling them alies and not humans
So that object inspector and a documentation update, would be very nice (I usually rely more on the code and inspector than in the docs).
Moreover, this “inspect what is available” would allow people to do “advanced” tactics in the preliminary stages.
Regarding the debugger, in the hunter triplets, thought I did this code:
// This spell runs once per frame.
this.say("Hey, where are you!");
var enemy = this.getNearestEnemy();
this.say(enemy.id);
if (!enemy){
this.setAction("move");
this.chooseAction();
}
else{
this.setTarget(enemy);
if (this.distanceTo(enemy) < this.attackRange){
this.setAction("move");
}
else {
this.setAction("attack"); // Charge!
}
}
return;
I wasn’t able to notice that the “<” might be changed for “>” to make my code work till I debugged it with chrome.
Hope this ideas are welcome and that codecombat gets even better,
txomon