Board Thread:Questions and Answers/@comment-71.47.17.55-20151221184320

Sorry abou vauge title but when i tried to open my battle it said "chunk_1:(4,49-52): unexpected symbol near 'You'

This was my code

comments = {"Smells like Cool Cat.", "Cool Cat is Copyright striking you", "Cool Cat sent you an email."}

commands = {"Email", "Post Vid", "Strike"}

randomdialogue = {"You\nAre\nNot\nVery\nNice\", "You\nStole\", "Derek\nIs\nMad\"}

sprite = "poseur" --Always PNG. Extension is added automatically.

name = "Cool Cat"

hp = 100

atk = 15

def = 5

check = "He is very mad."

dialogbubble = "right" -- See documentation for what bubbles you have available.

canspare = false

cancheck = true

-- Happens after the slash animation but before the shaking and hit sound.

function HandleAttack(attackstatus)

if attackstatus == -1 then

-- player pressed fight but didn't press Z afterwards

else

-- player did actually attack

end

end

-- This handles the commands; all-caps versions of the commands list you have above.

function HandleCustomCommand(command)

if command == "Email" then

currentdialogue = {"Liar,\n1evil."}

elseif command == "Post Vid" then

currentdialogue = {"I\nDo\nNot\nAccept."}

elseif command == "Strike" then

currentdialogue = {"You\nare\nevil\."}

end

BattleDialog({"You selected " .. command .. "."})

end 