Weird question maybe... I'd like to "chain" two generators together in sequence, via a button that passes a bunch of variables from the first one to the second one. Is this doable?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago* (last edited 1 year ago) (1 child)

You can do something like this on the second generator:

importInputs
  gravity = default
  atmosphere = default

output
  [lifeform] // output of the second generator

lifeform
  lifeformOne ^[importInputs.gravity == "something"]
  lifeformTwo ^[importInputs.atmosphere == "methane"]

Then on the first generator:

genTwo = {import:gen-2}

generateGenTwo
  [genTwo.importInputs.gravity = selectedGravity, genTwo.importInputs.atomsphere = selectedAtmosphere, ''] [genTwo.output]

This way, you set the variables of the second generator from the first generator, so that the lists used have the correct odds used.

Here are also some references from previous threads:

  • source
  • parent
  • hideshow 1 child comment