Randomize and remove words from list?

We are trying to build a language game for students studying French. The language game will be accessed through a widget. We have a list of words that need to be shuffled and then removed after use. We currently have the list set up to print the words in a random order and we have a boolean set up to tell the game whether the word is “masculine” or “feminine” depending on its pronoun. The problem we are having is that we don’t know how to get the list to update after each word is printed and to remove the word that was used from the list. Attached are screenshots of what we have so far.

Help us please!!

why dont you use an array for the word list? then you could get a random int from zero to the length of the array to select the word. then you do your work with the word and when done just remove that index.

1 Like

What is the current word index variable set to? also thank you for your response

i was using the current word index variable to record the index that is currently being worked with so that it can be deleted later. basically if you pulled off of the random int node a second time when you went to delete the index it would actually come up with another random number. we can avoid that by saving the index number to a variable. then again you could just used the word itself and a find node to reaquire the index number but that could cause issues in some very specific cases.

One more question…What is the node under “Use Word?” and if it is just a placeholder, where would Get need to be plugged?

The use word there is just a fill in for whatever script you have that uses the work. So in your case your presenting the word to the player and asking a question and whatnot. Basically i just outluned how to get a word from a list. The use word area is where you functionality script goes then the rest of what i made is to remove the word from the list of words