[Adventurer] Desert Delta

-- Only attack the enemies in the enemyNames array.
-- Be sure to attack in order! 1 -> 2 -> 3 -> 4
local enemyNames = {"Kog", "Godel", "Vorobun", "Rexxar"}

hero:attack(enemyNames[1])
hero:attack(enemyNames[2])
-- Attack enemyNames[3]:
hero:attack(enemyNames[3])
-- Attack the last element:
hero:attack(enemyNames[4])

its still not working

Can you show us the equipment that you are using?

Andrei

1 Like


this is my equipment

1 Like

Try to attack each enemy multiple times until they are dead.

Andrei

1 Like

but teh sword does 17 damage that is in one attack defeated

oh and i got a message whit the question are you romanian yes i am

1 Like

Well, just confirmed you are not using CS…it appears to be a form of ADA or some version of HTML. If you truly want to use Python, then click on Game Menu (top, middle of game screen), then Change hero/language and select the language you want:
image

CS uses // for comments, just like JS.

1 Like

is this code good?

local enemyNames = {“Kog”, “Godel”, “Vorobun”, “Rexxar”}

hero:attack(enemyNames[1])
hero:attack(enemyNames[2])
– Attack enemyNames[3]:
hero:attack(enemyNames[3]
– Attack the last element:
hero:attack(enemyNames[4])

if it is not good can you write me the code

why does this code not work
this is the code:

local enemyNames = {“Kog”, “Godel”, “Vorobun”, “Rexxar”}

hero:attack(enemyNames[1])
hero:attack(enemyNames[2])
– Attack enemyNames[3]:
hero:attack(enemyNames[3])
– Attack the last element:
hero:attack(enemyNames[4])

Can you format your code as it is described below? And what programming language are you using?

Andrei

1 Like
hero:attack(enemyNames[1])
hero:attack(enemyNames[2])
-- Attack enemyNames[3]:
hero:attack(enemyNames[3])
-- Attack the last element:
hero:attack(enemyNames[4]

python

does somebody know how you make at code combat a gem trail?

Hi @stefan_grecu, I’m a bit confused at the moment. Was your first post asking for help? And please could you elaborate on your second post, I don’t understand what you mean.
Thanks
Danny

can somebody please help me whit this level

it is desert delte code:

local enemyNames = {"Kog", "Godel", "Vorobun", "Rexxar"}

hero:attack(enemyNames[1])
hero:attack(enemyNames[2])
-- Attack enemyNames[3]:
hero:attack(enemyNames[3])
-- Attack the last element:
hero:attack(enemyNames[4])

says: TypeError:cannot read propperty ‘line’ or
or is indefinite

Can you send me the link for this level, and the screenshot of your error?
Lydia

It’s probably because this language (coffeescript or lua?) is not currently supported on some CoCo levels.
Danny

1 Like