Hi awhile ago i was getting help with a hint system for a hidden object game, i also lost my file for that project and left unity for awhile. I had images of how i did the hint system only it wasnt working.
http://imgur.com/a/0uEB7 This image of the hint system works in finding the objects but will also find objects that are not there. In the old hint system i did if condition is met then spawn partlcle at the marker and then put the if condition is not met back to check random number but for some reason i get a stack overload error then when i do like that image it spawns the particle randomly but if object already has been found the hint still spawns particle on that 1. i actually have 12 items to find.
Comments
Therefore, the player is carrying the item, that isn't going to change when the cycle is re-run.
I don't see your need for the random check, though. You shouldn't rely on randomisation unless it's necessary. Variable: Run sequence may be more appropriate in this case, as it allows you to cycle through a different chain of Actions each time it's run.
I shall bump up the Variable: Run sequence's maximum output to 20 in the next release. You can make this edit yourself in the meantime by opening ActionVarSequence.cs and changing the "10" on line 167 to "20".