Need help making a menu for my game.

Creeperguy05
05 Aug 2016, 17:35

Hello there, I'm FAIRLY new to Quest, and I understand it, but because I'm making a game, I need to have a menu to name yourself. I'm making a book-type game (with hyperlinks), and I have NO idea how to code a start screen, so I need help.
Please help me.


hegemonkhan
05 Aug 2016, 19:23

you need to set your first page (well it doesn't have to be your first page actually, such if you want other pages/stuff before your character creation/naming of character stuff) to be:

Page Type: [script] or [script + text]

and then you follow this guide:

http://docs.textadventures.co.uk/quest/guides/character_creation.html (ignore the usage of the 'start' Script in the 'game' Game Object, as this applies to how it works in Text Adventure --- you're using the Game Book, if I understood your post correctly, lol)

for the scripting of it


you can also read this too, it may help you understand menus better:

from:
http://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread#22036
to:
http://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread#22043

the part from the above link (#22043):

either I can do:

for your new code:

options = Split ("Male;Female", ";")
show menu ("Your gender?", options, false) {

~OR~

show menu ("Your gender?", Split ("Male;Female", ";"), false) {

simple algebraic substitution, don't know why I didn't recognize this immediately at what you were doing, grr!

there's two '(types of) menu' Scripts:

show menu ---> a pop up window for/of/as the menu ( http://docs.textadventures.co.uk/quest/scripts/show_menu.html )

ShowMenu ---> menu as hyperlinks (an 'inline' menu) in the text box ( http://docs.textadventures.co.uk/quest/functions/showmenu.html )