Board Thread:General Discussion/@comment-174.130.218.25-20150129215416

So I'm working on a little text-based rpg as my first game in PTC, but on my main menu, if you press 1 for a new game, I just get a syntax error. Here is the code for the main menu:

@main

cls

print "welcome to my rather small rpg!"

print ""

print "1) new game"

print "2) load game"

print "3) quit"

print ""

input "choise";main

if main==1 then goto @newgame

if main==2 then goto @loadgame

if main==3 then goto @quit

Btw, it says the syntax error starts on 'if main==1 then goto @newgame' 