CompuServe Messages

AmigaVison help

    01-Apr-93 09:39:09
Sb: #28418-AmigaVison help
Fm: Tim Byers 70003,4651
To: DAN CAMPBELL 73300,414
Dan, Off the top of my head, it sounds like when you record a "hit" using your "item=response()" action, then you need to increment a variable, such as "transit=transit+1" Everytime someone selects transit, the transit variable will increase by one. So, I'm assuming you've used Dpaint to create the background for your input screen, and in Amigavision you load the screen. Then I'd put a mouse delay icon under the screen, which will halt execution until a mouse click. Use the object editor to create the hit boxes, giving each box a different response, such as a numeric 1-50, or alpha "a – zz" or other unique identifier. then, after the mouse click icon, you'll need if then else statements to identify the value contained in "response()". E.g. your If then else icon would contain [response()="1"] and then to the right have a module icon, a variable icon [view=view+1], and a goto icon to jump to the end of the loop. This would increment your variables after each hit. Around this procedure would be your main loop to limit a user to 5 choices. Further, if you don't want a user to select the same choice more than once, you're looking at building a flag variable into the evaluation which if set, makes the user try again. Finally, if you want the user to change his/her mind, you need to add a hit box that erases the selections and lets them start over. It gets complicated but can be done. To make it simple, you could display the fifty choices, and use a text input variable to have them enter their choices. They could edit it before pressing enter, and then you could use the string functions to parse out the responses, and increment the variables. It all depends on what you want to do. Maybe others will have better ideas. Hope this helps! What's your deadline? Tim