I need help debugging my Warhammer 40k generator. My generator works the first time, always, but then after a few clicks of randomize, it slowly breaks down and it suddenly will only generate one feature for each of the categories of Inner Cauldron, Primary Biosphere, and Outer Reaches. The chances of all getting only 1 result each are over multiple generations is nil. So I know that a variable somewhere is being overridden and stored upon a new press of the randomize button. I cant find where the issue is. The only thing that works is to refresh the page cause it always works the first time, just not on a soft reset. Please help.
You will need to press randomize a good 2 to 10 times if not more to really see the issue.
You could try using
create-instance-plugin
to create instances of each star so that you don’t have to reset the variables every time.See this modification of your generator.
Thank you very much! I knew I would need to start branching out and learning more tricks.