Re: [nbos] Generating habitable/inhabitable systems."John S. Morgan" Wed Jun 3rd, 2009
>At 12:05 PM 5/31/2009, you wrote:
> > I'm trying to figure out the AlienScript API to create a function
> >will generate habitable or inhabitable systems on command. I get most of
> >it, but I can't figure out how you tell the generator "make this one
>When Astro generates a planet, it first generates the planet, and then
>determines what its habitability code is based on the planet's
>attributes. ie, its not deciding 'make one out of ten planets hospitable',
>but rather, its generating planets, and if one of them happens to meet the
>qualification, it marks it as habitable/hospitable.
>If you want to make a planet with the api, create a planet of the right
>size, set its temperature and atmosphere, and mark it as habitable. Or,
>select a spot in an existing system and use the 'Create Body - Planet -
>Earthlike' option from the pop-up menu in the system data display.
>There's also an API function called PlanetEarthLike() which will make a
>roughly Earth sized planet w/ an atmosphere similar to ours. BUT, that
>still may not end up as habitable if you place it too far or too close to a
>star as I believe it still does all the atm calculations to determine
>possible atm compositions.
>Use it like:
> PlanetEarthlike( b, "AstroSynthesis Standard Names.ipt")
I seem to recall seeing a script that did much what you want, but I can't
remember where I saw it. I'm not familiar with the AlienScript API, but if
it allows for loops like Visual Basic's DO WHILE, you might be able to have
it continuously create and delete planets until one shows up as Habitable.
Nbossoftware mailing list