PDA

View Full Version : Alice and I/O


Nermal
10-20-2006, 06:15 AM
How can you get values (numbers, names) from users into Alice? Perhaps when a character asks for the user's name?

How can Alice provide Output to, say, a calculation? Can you get a character to Say the value of a variable?

DrJim
10-20-2006, 12:15 PM
First, what you need is a couple of the world level functions (see attached - there are a few of them :eek: ).

"Ask user for ---" will get your input and "--- as a string" will convert it to string format if it wasn't one already.

Two options to display the string on screen while the world is running are the "say …" command and using the string as the text in a 3D text object. (Anyone know any others :confused: ?) Also, the "Print" command (drag up from the bottom) will print almost any type of variable in a small text box below the screen.