Spawn question 1x only from table
sinbot
Member Posts: 232
I have a trivia game that is pretty straight forward. Random question from a table prompts for player to answer. Problem is the questions are occasionally repeating. I tried to watch some tutorials on how to spawn from tables without repeating and it seems quite convoluted since there are apparently a gazillion approaches/scenarios to spawning randomly from table. Can someone advise what the general point of the process is? There must be one specific part to add to the equation without having to listen through 30 minutes of details. In other words.. if you already have everything setup proper, is there something specific you can do to simply make the logic spawn a question one time only?
Comments
Have a Table (Master) that holds all the questions. For each gameplay, copy that table to another table (New).
Keep a record of the row you are using, and once you have spawned the question, delete that row from the table (New).
When using the random function, use TableRowCount(TableNEW) for the Max value.
Best,
Two.E
GSLearn.com | Templates | Free Demos | Udemy Course
If you (or anyone else for that matter) would be cool with trying squeeze that into this game file I would be happy to tip you a few rupees via PayPal ; )