I hope I can explain this question correctly.
I have a shop area in my game that when the player enters, it'll drop down three random things the player can buy. It creates the same objects three separate times. I assume it automatically gives each one an instance? Say I have 15 random items for it to choose from. As of right now, two (or all three) might have the same item. Is it possible to compare the value of one of these instances to another instance? If Instance 1 has the same random item as Instance 2, I'd like Instance 2 to 're-roll' it's random item so it's different. I know I can probably get this working right if they were completely different objects.
Basically, I'm trying to do something like this -
If Instance 2 (ShopItem) Alterable Value A = Instance 1 (ShopItem) Alterable Value A
Set Instance 2 (ShopItem) Alterable Value A to RRandom (1,15)
Is something like this even possible? I can't seem to figure out how to do it if it is. It’s also possible I’m completely misunderstanding Instance Values too.
Here's a video of what the shop looks like if it helps explain what I'm trying to do.
Please login to see this link.
Thanks!