Page 1 of 1

Text box help

PostPosted: Thu Jun 23, 2011 1:12 am
by bilvyy
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?

Re: Text box help

PostPosted: Thu Jun 23, 2011 8:41 am
by schnellboot
did you use the script above or the fixed script at the bottom

Re: Text box help

PostPosted: Fri Jun 24, 2011 12:06 am
by bilvyy
I used the fixed script, but I didn't think that would have anything to do with this?

Re: Text box help

PostPosted: Fri Jun 24, 2011 5:20 am
by schnellboot
just to know how I can implement what u want

Re: Text box help

PostPosted: Wed Jul 20, 2011 2:56 am
by bilvyy
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?

Re: Text box help

PostPosted: Wed Jul 20, 2011 2:48 pm
by foleyjo
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.