In my game's intro, I want to have a button appear when you click, such as in later Space Quests, asking if you want to watch the intro, skip, or restore. I tried following Brians Tut. and using the button code from there, but where I am trying it it doesnt work
// End the title screen, start the game
(if(CAN_CONTINUE)
(var button)
= button Print(
"What do you want to do?"
#title "Space Quest 3 1/2"
#font LARGE_FONT
#icon 0 0 0
#button "Watch Intro " 1
#button "Skip Intro" 0
#button "Restore" 2
)
(if(== button 1)
Print("You are watching the intro")
)
(if(== button 0
(send gRoom:newRoom(2))
)
(if(== button 2
Print("You are Restoring")
)
)
)
)
)
)
)
)
As you can see, scripting isn't my specialty. When I try compiling this, the script says "Undefined Symbol "var". I would also like to know how to close the whole thing if the player chooses to watch the intro. I know how to make it restore, I just haven't bothered putting it in first. Help!!!