The Final Kithmaze Help!


#1

Hi,

I have a problem with the code and I come up with an error message saying, “Line 6: tmp13[tmp14] is not a function.”

Here’s my code:

loop {
this.moveRight();
this.moveUp();
var enemy = this.findNearestEnemy();

this.attack(enemy);
this.attack(enemy);
this.moveRight();
this.moveDown();
this.moveDown();
this.moveUp();
}


#2

Hi ksj00,
please format your code correctly, as described in the FAQ. In the current state it is hard to read, so you will receive less help than with well formatted code.


To solve this problem we need to know your current equipment, especially your Glasses, Boots and Weapon.

Please check on all the mentioned equipment pieces whether they have the methods you used. If you for example bought new glasses they might not have the findNearestEnemy-Method, but instead use findNearest and findEnemies.


#3

Thanks!!! That will really help!


#4

Sorry forgot to add…

Glasses- Crude Glasses
Boots-Simple Boots
Weapon-Simple Sword

With that last paragraph of what you said, should I use the


#5

Hi J_F_B_M

Figured it out!

Thanks so much!!