Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Alice and I/O
Old
Nermal
Guest
 
Status:
Posts: n/a
Default Alice and I/O - 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?
   
Reply With Quote
Runtime I/O in Alice.
Old
DrJim
Guest
 
Status:
Posts: n/a
Lightbulb Runtime I/O in Alice. - 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 ).

"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 ?) Also, the "Print" command (drag up from the bottom) will print almost any type of variable in a small text box below the screen.
Attached Images
File Type: jpg world functions.JPG (35.2 KB, 204 views)
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.