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
Original Message:
Sent: 09-27-2022 17:35
From: Aaron Rice
Subject: Dashboard "Speed Round" scripting help?
Hi all! I'm just starting to learn about building my own panel, and I could use some help. I've got a game show that I've got a panel built for scoring, that has name for each team, display the score, add or subtract 10 points. I am absolutely in over my head for this one part, and sure hope someone might be able to help me here.
There is one part in the game, a "speed round" where Team1 gets to answer 10 questions, then Team2 gets to answer any that Team1 did not answer correctly after time ends. Then we go in reverse, with Team2 getting first crack and Team1 getting the scraps. Team1 isn't always first, sometimes it's Team2. So, I need to be able to accomplish the following, and have no idea how to best go about it:
- Display what question number is active: Round starts with question 1, and progresses through 10 in order. After 10, it would go back to the first question that was passed.
- Save the status of each question per team in a variable. I will be making an XPression scene for the host to see what questions are in play (not asked questions, passed stay in the active team until time ends; any wrong questions bump over to the other team for the possibility for them to steal)
- Separate buttons for Correct, Incorrect, Pass (would like to just have one button that works for the active question, vs. 10 buttons for right, 10 for wrong, 10 for pass etc.
- Correct awards 10 points, removes question from rotation completely
- Incorrect removes question from current team's rotation and moves it to the other team
- Pass moves to the next question but keeps the question in the rotation
- End of round will move all unanswered questions to the other team when time runs out
Does anyone have any guidance they can provide me? I greatly appreciate it!!!
------------------------------
Aaron Rice
WTVO/WQRF/My Network TV
------------------------------