Mercenary recruitment, issue with multiple copies

Hi!

I'm having a tavern where X amount of events will spawn (Galv event spawner), each of these events will be a mercenary that you can hire. These mercenaries are randomly available and it is determined by a self variable(YEP Self switch variable).

I am using the event spawner so I can make all the mercenaries in one event, kinda like a common event.

So currently it is randomized and if you have a specific party member already in your party then it won't show. I.e. if James the Paladin is in your party, it cannot spawn in another tavern or at another spot later in the game.

I have a time event that might work so that the event won't respawn another mercenary until a later date.

But, what I can not figure out is how to prevent multiple copies of one mercenary... See picture, the three characters lined in a row are the mercenaries and two of them are the same.
1577804576378.png

Each event should be unique, especially in the same tavern, but throughout the world as well.

A big issue might be that the event has to be self contained whilst also referencing outside in order to know wheter or not a certain mercenaries is spawned.

Page 1: Autorun
1577804677986.png


Page 2: Action button
1577804759794.png


1577804735715.png

1577804788561.png


Page 3: Blank
1577804874843.png


Page 4-12:
Same as above

Page 13: (This causes the event to reset and a new mercenary will spawn.)
1577804912360.png


Page 14🙁Same as above but for next reset cycle)
1577804987104.png


But I am at a loss and I can not seem to figure it out...
Also, I know my respawn after set time is a bit wonky and I will probably change it. Right now, I just want to know if and how I am supposed to make each event unique.

Thanks for any help.

Best,
Bishiba
Have you tried adding and if statements to prevent that? Not sure how it will work with those plugins but I think it could be possible if the "If" statements are set up accordingly
Have you tried adding and if statements to prevent that? Not sure how it will work with those plugins but I think it could be possible if the "If" statements are set up accordingly
I tried a lot of different combinations, but they all got very strange. Since it's all in one event, there's no good way that I've found with if/and/else statements. I'm honestly questioning if it can work with events. I've tried very hard and very long to figure out how to do it.

Worst case is that I have to start making separate events, it would limit a lot of freedom within the game since any changes I'd like to make, such as adding a new mercenary would imply changing a few hundred events instead of changing the one event I'm using now.

Thanks for your suggestion though, it is the way I am still looking at it. I might make a video and post it to be able to show it since it is a rather complex event situation.

Best regards,
Yeah, I can kinda understand. I had to do something similar in my game and I ended having to so separate events.

A video might help a bit more, so hopefully someone who knows a bit more with those plugins can help
Moved to: Javascript/Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/mercenary-recruitment-issue-with-multiple-copies.116796/