Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
How to save user word input (string) to make score?
Junior Member
Status: Offline
Posts: 4
Join Date: Oct 2020
Default How to save user word input (string) to make score? - 10-15-2020, 05:40 PM


This is not for a school project. I use Alice as a hobby and the current "home" project I'm doing is for a family online experience (due to COVID remote distancing). That said, I set up a theme where a character asks my nephew to put his user input after being asked a question (in which the character will respond with being incorrect or correct). However, the user input is a string and not an integer. This is where I'm having some confusion.

How do I have the program "store" or save my nephew's word, not interger, answer to calculate for a score at the end of the animation?

So far, I made a list of appropriate global scene variable textstrings that are the words of the name of the objects in my animation. Basically he is being asked ot name the objects in the animation.

I have a proper:

If *getstringfromuser* "Question" *equalsignorecase* this."__" Then this character says "Good job!" else "Incorrect!" statement"

I have all my questions and If Then statements setup and my character responding with the appropriate response, but I don't know how to keep track of the correct answers to create a score or total in the end.

Last edited by WinterIsComing; 10-16-2020 at 11:52 AM. Reason: Problem was solved
Reply With Quote

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.