CS 199: SPST Games ~~~~~~~~~~~~~~~~~~ Assignment 13: ~~~~~~~~~~~~~ - Examples of all these tasks are available on "PSU CS199" - Help for Strings: http://lslwiki.net/lslwiki/wakka.php?wakka=string Task 1: ~~~~~~~ - Create a script that accepts commands in the form "sum [number]". This should sum all integers from 1 to the number. - eg. "sum 100" should produce the output "sum of 1 .. 100 = 5050" - Hint: You can use the function you created in assignment 12 Task 2: ~~~~~~~ - Create a script that accepts a command in the form "colour [vector]". This should colour all sides of the object with the colour specified by vector. - eg. "colour <1,0,0>" should colour the object red. Task 3: ~~~~~~~ - Create a script that accepts a command in the form "time". This should print the current time, using hours, minutes, seconds. - eg. 16:37:01 - Be sure that the minutes and seconds always have two digits - hint: llGetWallclock() will return the current time Task 4: ~~~~~~~ - Create a script that will respond when anyone greets it with "Hello". - It should reply with "Hello,", then their first name. - eg. "Hello", then "Hello, Francis"