Hello Everyone, how are you doing? I'm developing a game for my birthday, where it will be used a as game show to quiz people on video game trivia and video game challenges. Most of the fundamental pieces of codes are working, however one is incomplete, and that's the random number generator (without repeats) for the categories that will be pick for the ten questions/challenges that the contestant will go through. I've told one of my friends IRL about this problem, and he said that what I would need is a hash table, he even showed me how to code it, but the code is in C# instead of javascript, which he has no experience with. As I tried to lookup forms on here, and even videos to find a solution to my problem, one of them came close to what I was looking for, but it was missing how to reset the array, cause in my game, once you move to a new map when the contestant gets a question wrong, I want an event so the random number generator will pick a new set of categories from the same array. Here's the form post for reference: Random number variable without repeat
I'm asking for help since I know little to nothing about javascript, and the post linked above is for RPG Maker VXAce, not in javascript so I may use it in RPG Maker MV. Any and all help is appreciated, and if you can, please provide some code so I may copy paste it into my game. Thanks in advance, and I'll be sure to give you credit in my game as a token of my gratitude.
Edit: Sorry guys, I should have mentioned that the code I was referring to was by Shaz in the link above, since the link by wavelength no longer works.
I'm asking for help since I know little to nothing about javascript, and the post linked above is for RPG Maker VXAce, not in javascript so I may use it in RPG Maker MV. Any and all help is appreciated, and if you can, please provide some code so I may copy paste it into my game. Thanks in advance, and I'll be sure to give you credit in my game as a token of my gratitude.
Edit: Sorry guys, I should have mentioned that the code I was referring to was by Shaz in the link above, since the link by wavelength no longer works.