Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   multiplication (http://www.alice.org/community/showthread.php?t=2815)

ringo977 06-26-2009 04:57 PM

multiplication
 
I need to have a character ask a 'user' how old they are (years) and then tell the 'user' how many days old they are.
I am almost there but can't quite get it to work. I have 'ask user for a string' and the question being 'how old are you', but can't figure out how to multiply the input of the user to come up with the days.
Thanks for any help!

anonymous1 06-26-2009 06:05 PM

Just make 3D text and do

Text set text to "numberenteredbyuser * 365" as string

NOTE: the as string function can be found under the world's functions

ringo977 06-27-2009 10:51 AM

I can't figure out where or how to put the value put in by the user to multiply it by 365. Can anyone help me with this?


All times are GMT -5. The time now is 06:28 PM.

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