Hey I have 7 of the same text object and I randomly select a name for each of them but I need it so there can’t be duplicates but I can’t figure out how to make it re-roll when they get duplicates
In this example I have just the three, I swear you used to be able to compare text variables but can find it.
You can’t compare the values of different instances because GD doesn’t know which ones you want.
In your situation, it’s using a for each instance. That event picks 1 object at a time. It’s comparing the object to itself.
You could use a variable to save the value of 1 object and then compare it to the others. I would put the possible texts into an array and either shuffle the array or pick random target objects. There are multiple ways to randomize things without repeating.
Do you want to add one text value on each click or are you adding all of the texts at once.
It’s easier to use an array and either shuffle the array using array tools or pick random target objects than using what I would call a brute force approach. The brute force technique is like a hacker trying every password. The number of tries is unpredictable and would probably require a while event or nested for each instances with a pick all. Even then, it would be repetitive.
How does it no not to have two with the same name, and I also don’t get the difference between array and list. Also I tried just copying and mine does not have the delicate condition yours has.
I really appreciate your help I’ve never made anything quite like this and I’m struggling hard
So basically I have 7 text objects and I have a list of names. Each time I hit the randomize button I need the 7 text objects to each pull a name from the list however there can’t be any duplicates.
I’ve had to start a lot and when I was trying to use what you had this was all I had left