Questions are open answer, and don't need to store the questions. Just looking to keep track of if it's answered correctly, incorrect or passed. I tried on my own by setting up ten different numerical parameters, Q1-Q10. Values would be:
-1 = incorrect
0 = correct
1 = Question in play
2 - Passed
For the correct button, I had a button that did IF Q1 = 1, change the value to 0 otherwise IF Q2 = 1, change value to 0 etc. until Q10.
For incorrect, it did IF Q1 = 1, change value to -1 (repeat for all 10).
For pass, I did IF Q1 = 1, change value to 2 (repeating for all 10).
I got stuck here, because at the end of all the passed questions (value of 2), I need it to do IF Q1 = 2, change it to 1, but only if the remaining questions are less than or equal to 0. I think I have the concept down, but I am a newbie for scripting.
------------------------------
Aaron Rice
WTVO/WQRF/My Network TV
------------------------------
Original Message:
Sent: 10-03-2022 09:11
From: Aleksander Stalsberg
Subject: Dashboard "Speed Round" scripting help?
Could be fun to try...
Two questions right of the bat though.
- Is the questions just a question with open answer? Or multiple choice? Etc?
- Do you need a place to store all the questions to "prep" before they go "live"?
Just as a brainstorm:
- I would use a struct table to store/prep the questions, defining the question, the answer, and wich team it goes to.
- Then I would pull 10 questions from that prepped table, into another table for team 1 and leave team 2 blank. This one would have to have the questions numbered, and hold the question and the state, and also possibly the answer for the host to see.
- Then use scripting to move/handle the questions as see fit depending on what they do. IE. if team one gets one wrong, push that question into the team 2 table, so on so forth... If team 1 passes a question, mark it as passed. Correct, mark as correct...
- You could also do some math here and add 10 points for each one marked correct and so forth to score automatically.
------------------------------
Aleksander Stalsberg
Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
Norway
------------------------------