.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   SEV: Planet Type and Colony tech (http://forum.shrapnelgames.com/showthread.php?t=30750)

Elsemeravin October 8th, 2006 02:16 PM

SEV: Planet Type and Colony tech
 
While waiting to get the full version (SEV), I'm having an idea using the demo and searching data files :

Setting the following in PlanetPhysicalTypes.txt:

Name := Solid Rock
Description :=
Picture Index := 2
Tech Area For Colonization := Native Solid Rock Planet Colonization

Name := Ice
Description :=
Picture Index := 1
Tech Area For Colonization := Native Ice Planet Colonization

Name := Gas Giant
Description :=
Picture Index := 3
Tech Area For Colonization := Native Gas Giant Colonization

Name := Flooded
Description :=
Picture Index := 1
Tech Area For Colonization := Native Flooded Planet Colonization

Name := Volcanic
Description :=
Picture Index := 1
Tech Area For Colonization := Native Volcanic Planet Colonization

Then the tech tree would have: the following requirement:

For the native colonization tech, a requirement making impossible to research (like have already level 1 in that tech or racial something necessary)

Then 5 Advanced colonization tech:

Advanced Solid Rock Planet Colonization
Requirement:
Native Solid Rock Planet Colonization >=1
OR Advanced Ice Planet Colonization >=3
OR Advanced Gas Giant Colonization >=9
OR Advanced Flooded Planet Colonization >=7
OR Advanced Volcanic Planet Colonization >=4

Advanced Ice Planet Colonization
Requirement:
Native Ice Planet Colonization >=1
OR Advanced Solid Rock Planet Colonization >=4
OR Advanced Gas Giant Colonization >=8
OR Advanced Flooded Planet Colonization >=3
OR Advanced Volcanic Planet Colonization >=9

Advanced Gas Giant Colonization
Requirement:
Native Gas Giant Colonization >=1
OR Advanced Solid Rock Planet Colonization >=9
OR Advanced Ice Planet Colonization >=9
OR Advanced Flooded Planet Colonization >=4
OR Advanced Volcanic Planet Colonization >=6

Advanced Flooded Planet Colonization
Requirement:
Native Flooded Planet Colonization >=1
OR Advanced Solid Rock Planet Colonization >=5
OR Advanced Ice Planet Colonization >=5
OR Advanced Gas Giant Colonization >=3
OR Advanced Volcanic Planet Colonization >=8

Advanced Volcanic Planet Colonization
Requirement:
Native Volcanic Planet Colonization >=1
OR Advanced Solid Rock Planet Colonization >=5
OR Advanced Ice Planet Colonization >=7
OR Advanced Gas Giant Colonization >=8
OR Advanced Flooded Planet Colonization >=7

This way everyone can research every colonization tech, but the kind of planet you choose determine the one would be able to colonize first.

2 Questions to people having the full version already or the beta tester (should I say beta modder?) around:
1] Can the restriction on native tech be easily possible ?
2] Can such "OR" combination made on the tech tree ?

Fyron October 8th, 2006 02:27 PM

Re: Planet Type and Colony tech
 
You can make OR requirements. It would look something like:

Requirements Evaluation Availability := OR
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in A.
Requirement 1 Formula := Get_Empire_Tech_Level("A") >= 1
Requirement 2 Description := Empire must have at least tech level 1 in B.
Requirement 2 Formula := Get_Empire_Tech_Level("B") >= 1
Requirement 3 Description := Empire must have at least tech level 1 in C.
Requirement 3 Formula := Get_Empire_Tech_Level("C") >= 1

Elsemeravin October 8th, 2006 02:39 PM

Re: Planet Type and Colony tech
 
Quote:

Imperator Fyron said:
You can make OR requirements. It would look something like:

Requirements Evaluation Availability := OR
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in A.
Requirement 1 Formula := Get_Empire_Tech_Level("A") >= 1
Requirement 2 Description := Empire must have at least tech level 1 in B.
Requirement 2 Formula := Get_Empire_Tech_Level("B") >= 1
Requirement 3 Description := Empire must have at least tech level 1 in C.
Requirement 3 Formula := Get_Empire_Tech_Level("C") >= 1

Would it be possible to do the same as:
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in A.
Requirement 1 Formula := Get_Empire_Tech_Level("A") >= 1 OR Get_Empire_Tech_Level("B") >= 1 OR Get_Empire_Tech_Level("C") >= 1

?

Phoenix-D October 8th, 2006 03:12 PM

Re: Planet Type and Colony tech
 
Maybe with an If statement, but I don't think it'll work like that.

MasterChiToes October 8th, 2006 03:21 PM

Re: Planet Type and Colony tech
 
Add in a researchable % max pop size bonus for native planet types... http://forum.shrapnelgames.com/images/smilies/happy.gif

Fyron October 8th, 2006 05:51 PM

Re: Planet Type and Colony tech
 
Yes, that should work. You can use ORs in the req formula, since it is a boolean logic conditional evaluation. It's a little more clear with the other way, but you can build much more complex requirement possibilities with the inline ORs and ANDs (as well as NORs and NANDs with NOT; exclusive techs, oh my!).

Ragnarok-X October 8th, 2006 05:52 PM

Re: Planet Type and Colony tech
 
So, will you do Adamant Mod, Fyron ?

Elsemeravin October 9th, 2006 02:31 AM

Re: Planet Type and Colony tech
 
Quote:

Imperator Fyron said:
(as well as NORs and NANDs with NOT; exclusive techs, oh my!).

Could make a nice combination between ecology and nuclear weapon. The first one you discover make you unable to research the other.
Same with Light and Darkness powers http://forum.shrapnelgames.com/images/smilies/happy.gif [img]/threads/images/Graemlins/Cold.gif[/img] http://forum.shrapnelgames.com/images/smilies/evil.gif

Fyron October 9th, 2006 03:20 AM

Re: Planet Type and Colony tech
 
Ragnarok-X said:
So, will you do Adamant Mod, Fyron ?


I don't know...


All times are GMT -4. The time now is 03:54 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.