Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

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 `


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!


Fixed the format of the coding