Alice Community

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

jpolk 07-15-2010 05:37 PM

Speaking in Hours
 
1 Attachment(s)
How do I make the ninja speak the return of world.time in hours?

Dameria 07-15-2010 09:28 PM

You can look at my clock program in my signature if you want to.

To make a variable into a string of characters, you have to use the world.function called "(what) as a string" or something like that. Then for the variable "(what)", you will put in the world.hour variable. Oh, you will probably also want to use the function to concatenate (join together) two strings, it should be near the function I just explained. You might have to use it several times, just try different things and see what works (use your brain, shouldn't be too hard at all). You will join together whatever you want to say with the "(world.hours) as a string" function, and then maybe some other string after that if you want to.

Hope it helped, if you are still confused ask and I will do an example.

jpolk 07-16-2010 07:39 PM

Thanks!
 
1 Attachment(s)
Thanks that was a big help, once I used the A join to B function to join my two strings together. Oh yeah nice clock! You can check out what I got now if you want!


All times are GMT -5. The time now is 10:19 AM.

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