Randomizer option removal issue

So, I posted about this quite a while ago, and I had a solution, but then I took a pretty long break from the forums and the image purge got my old solution. So, here I go again.
Basically, I’m trying to create a randomizer in my game where it chooses from a selection of pre-decided tasks for the player to do, each of which has a property assigned to it. However, I don’t want the same task to happen twice, so I need a way of removing tasks from the options after they’ve been chosen. I tried doing this myself by turning the task’s property status to ‘false’ after it had been chosen, but I need to make a LOT of tasks (the point is that you don’t do every task in the game, so no two play-throughs are identical), and I’m not the best at block code formatting, and I couldn’t figure out how to keep it under the block limit. How could I do this?

4 Likes

You could try labeling each task as a number, and then when you finish a task you add it to a property that contains all the finished tasks. Now when the randomizer picks a task, you can have it look through the property and see if the number it picked exists in the property. If it does have it randomize again till it finds a task that you haven’t done yet, if not, then just play-through like normal.

7 Likes

Thanks! How would I add the number to the property?

Just set the property to the previous value + the additional number.

So if you first started, the text would be empty so when you place the number in, say 1, the property would be ,1. Then after that once you finish task 4, you’d grab the previous value for the property, “,1” and then add the task 4, there by changing the property value to ,1,4. Then repeat.

5 Likes

Ohhh, OK, thanks! (I really need to brush up on my capabilities of properties knowledge.)

1 Like

I may be thinking too much into my coding experience outside of Gimkit, But is it we can preset properties to tasks or… do you manually have to set up properties…
I am assuming no… But just asking

1 Like