Alice Community  

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

Reply
 
Thread Tools Display Modes
multiplication
Old
ringo977
Guest
 
Status:
Posts: n/a
Default multiplication - 06-26-2009, 04:57 PM

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!
   
Reply With Quote
Old
anonymous1
Guest
 
Status:
Posts: n/a
Default 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
   
Reply With Quote
Old
ringo977
Guest
 
Status:
Posts: n/a
Default 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?
   
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 ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.