I am trying to have events randomized based upon a RAN1-4, but if 1 event has a 2 for example, one of the other 3 cannot.
For example, if I walked into a map there would be x4 random NPCs in different locations, but each time I enter they may not be there, or may be in another location. Below is how it should look (any combination of the 4)
However, what I am getting is different combinations:
I tried using Conditional Branches, but on tests the events still duplicated.
I found a great piece of code on here posted by @Shaz:
And thought I could set a 5th variable based upon the sum of the other 4, so if the event equals that sum all is good, if not roll again. But that is not working.
The chest is a trigger to reset the random roll, my Parallel Event, random event and variables are set up as follows:
Any help would be appreciated. Thanks.
For example, if I walked into a map there would be x4 random NPCs in different locations, but each time I enter they may not be there, or may be in another location. Below is how it should look (any combination of the 4)
However, what I am getting is different combinations:
I tried using Conditional Branches, but on tests the events still duplicated.
I found a great piece of code on here posted by @Shaz:
And thought I could set a 5th variable based upon the sum of the other 4, so if the event equals that sum all is good, if not roll again. But that is not working.
The chest is a trigger to reset the random roll, my Parallel Event, random event and variables are set up as follows:
Any help would be appreciated. Thanks.