It looks like you're new here. If you want to get involved, click one of these buttons!
Hello everyone, I have another problem where I need help.
It is a bit complicated so I first have to explain how I structured my generator, I hope it will make sense to you.
I built a generator for a mission board for a port, it is for a board game about sailing warships.
Since I'd like to keep the generator setting at one, so players don't need to switch that setting constantly while playing, I want to generate five different missions every time.
The first table is this:
Table: MissionBoard [@5 AvailableMissions]
40:[![@SmallShipAmount]Random2MastShip >> implode] 30:[![@MediumShipAmount]Random3MastShip >> implode] 20:[![@LargeShipAmount]Random4MastShip >> implode]
So to summarize: Available Missions -> Escort Mission -> RandomNationConvoy -> RandomNationShips -> RandomXMastShip
Now the problem is that because the amount of named ships is not a whole lot, it regularly happens if a lot of ships of a nation get rolled for a mission that for the next mission, there are not enough left. Because I don't want there to be doubles of the same ship within a particular mission. However, having duplicates between each mission is fine, since obviously it doesn't work otherwise and I get blanks. I understand from the documentation that I should use the shuffle command to make all ships available again between mission generations. However, whereever I tried to put it and whichever table that is involved with ship selection I tried to shuffle, it won't work. It will still try to pick unique ships for each set of five missions, resulting in blank spaces in the last few missions. Where do I have to put the shuffle command and what table in this tree do I really need to shuffle so I can get duplicates between each generated mission but not within each mission?
Thank you for any help.