eleazar wrote:I don't know if it is possible at this point, but hopefully we can get something working that knows how to move towards a species EP without treating it as a unique problem for each species.
We rotate this chart so the favoured planet is on top:
- EP%20wheel.png (38.63 KiB) Viewed 7673 times
We number the planets like so:
- EP%20numbered.png (10.65 KiB) Viewed 7673 times
Edit - This picture doesn't seem to display, but it is simply nine circles with numbers on - using the code section below you can work out the numbers.
The preferences section in species.txt for each species is written as below
(for example, terran-prefering Gyisache):
Code: Select all
planetcode = [
type = Swamp planetcode = 6
type = Toxic planetcode = 4
type = Inferno planetcode = 2
type = Radiated planetcode = 1
type = Barren planetcode = 3
type = Tundra planetcode = 5
type = Desert planetcode = 7
type = Terran planetcode = 9
type = Ocean planetcode = 8
When terraforming, the
planetcode is looked up. e.g. a tundra planet returns 5
Two is added to this number. e.g. 5+2=7
The new number is looked up a the same list (where 9+ gives terran). e.g. 7 returns desert
The planet
type is changed. e.g. changed to desert
The environmental preferences for all species can be
(sorry I can't remember how to program):
Code: Select all
if planetcode = 0 environment = Uninhabitable
if planetcode = 1-4 environment = Hostile
if planetcode = 5-6 environment = Poor
if planetcode = 7-8 environment = Adequate
if planetcode = 9-10 environment = Good
if planetcode = 11 environment = Superb
If the second code section is adjusted there can be species which are more or less tolerant of environments different to their prefered. e.g if planetcode 1-8 sets environment to Hostile or even Uninhabitable then the species in question would only be able to live on their own prefered world type - but they could still terraform in the normal way.