Backwoods Standoff: Code Promblems

See Confused on what to do . The language is Lua, but you can grasp the idea.