Text box help

Non-platform specific questions.

Text box help

Postby bilvyy » Thu Jun 23, 2011 1:12 am

I'm using this script in order to work my text boxes and NPC interaction in my video game. This makes it so that when the player presses Enter (or whichever singular command), it moves through text and locks a player into interaction. This is all working fine for me.

What I'm wondering is whether it's possible to include a slab of text which... Okay I'm having trouble trying to explain this.

Say for example, one NPC asks:

"What do you need help with?"

And the player is given the option to:

"Instructions
Save
Load
Quit"

What they say isn't important, but each different command leads to a different section of text. Is it possible to align a script so that pressing 1 will select the "Instructions" option, pressing 2 will select the "Save" option etc etc, while still maintaining the option of pressing Enter to scroll down?

TL;DR: Is there at all any way to have an in-game menu with selectable options?
Last edited by bilvyy on Wed Jul 20, 2011 2:56 am, edited 1 time in total.
bilvyy
 
Posts: 23
Joined: Wed Feb 16, 2011 2:04 am
Score: 0 Give a positive score

Re: Text box help

Postby schnellboot » Thu Jun 23, 2011 8:41 am

did you use the script above or the fixed script at the bottom
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Text box help

Postby bilvyy » Fri Jun 24, 2011 12:06 am

I used the fixed script, but I didn't think that would have anything to do with this?
bilvyy
 
Posts: 23
Joined: Wed Feb 16, 2011 2:04 am
Score: 0 Give a positive score

Re: Text box help

Postby schnellboot » Fri Jun 24, 2011 5:20 am

just to know how I can implement what u want
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Text box help

Postby bilvyy » Wed Jul 20, 2011 2:56 am

I still really need help with this. I'm getting close to a deadline.

Is there at all any way to have an in-game menu with selectable options?
bilvyy
 
Posts: 23
Joined: Wed Feb 16, 2011 2:04 am
Score: 0 Give a positive score

Re: Text box help

Postby foleyjo » Wed Jul 20, 2011 2:48 pm

I'm not sure I fully understand what your wanting to do but if the player is entering the text in a textbox why don't you do a string compare and if the text in the textbox matches one of your options perform that action.
KISS -Keep It Simple Stoopid
foleyjo
 
Posts: 275
Joined: Mon Jul 09, 2007 1:15 pm
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest