This is the code
set text font "courier new"
set text to bold
set text size 30
text 150, 50, "Welcome to Practice Text RPG"
set text size 25
text 300, 100, "1. Start Game"
text 300, 125, "2. Leave Game"
text 350, 175, "Choice: "
set cursor 445, 175
choice = 0
input choice:
if choice = 1
cls
screen()
AdventurersGuildMenu()
else
EndGame()
ENDIF
//================================Finctions=====================================================================
function Screen()
line 0, 350, 800, 350
line 0, 353, 800, 353
line 500, 0, 500, 350
line 504, 0, 504, 350
set text size 20
text 10, 365, "Character Name Armor Class Hit Points Condition Spell Point Class"
line 0, 380, 800, 380
line 208, 380, 208, 600
line 315, 380, 315, 600
line 420, 380, 420, 600
line 520, 380, 520, 600
line 640, 380, 640, 600
ENDFUNCTION
function AdventurersGuildMenu()
text 520, 10, "Thou art in the Adventurers Guild"
text 520, 30, "Create your charecters and"
text 520, 50, "build your party here"
text 515, 100, "1.) Create A Character"
text 515, 120, "2.) Add A Member To your Party"
text 515, 140, "3.) Remove A Member From Your Party"
text 515, 160, "4.) Save your Party"
text 515, 180, "5.) Leave the Game"
text 515, 200, "6) Enter the City"
text 515, 250, "Choice: "
set cursor 580, 250
input choice
if choice = 1
CreateCharacter()
ENDIF
endfunction
function CreateCharacter()
print "This is the create Character function"
endfunction
function EndGame()
end
ENDFUNCTION
If I run this and press 1 to start the screen for the adventurers guild comes up, not a problem. That's what I want. If I hit 1 on that screen I get an error that says I have hit a function in mid program. What am I missing here?
Any help would be great!!!
Thanks in advance!