Confused in Munchkin Swarm

I do not know what “end expected (to close at 3:5) at 13:1” means. I am using Lua.

My code is:

       local enemy = self:findNearestEnemy()
    if enemy then
    -- If it comes closer than 10 meters, cleave it!
 local distance = self:distanceTo(enemy)
 if distance > 10 then
    -- Else, attack the "Chest" by name.

could you wrap your code in triple backticks `

1 Like

I do not know what backticks are used for in coding or how.

Tom meant to ask you to format the code so it displays properly here. See the FAQ - I need help with my code!

1 Like

Fixed the format of the coding