Logo Platform
logo amplifiers simplified

Improvement availability and the Senate?

Reply
Copied to clipboard!
7 years ago
Jun 2, 2018, 11:11:15 AM

I wanted to mod a set of planet improvements and production queue actions which are available only in certain political conditions. However I don't know if any of the three is possible:
- enabling an improvement when party is represented in the Senate,
- enabling an improvement when party is leading the Senate,
- enabling an improvement when a certain law is passed.

0Send private message
0Send private message
7 years ago
Jun 3, 2018, 2:25:22 AM

Specially dust production buildings for these. I believe one of the only ways to get good dust recently is harboring dust polanets filled whit pop. right?


0Send private message
7 years ago
Jun 3, 2018, 2:28:09 AM

The others are either implemting religious laws or selling stuff... and sometimes its a bit difficult to do such.

0Send private message
7 years ago
Jun 4, 2018, 8:10:21 AM

Hey folks!


It is possible to have a construction available only when senate-related prerequisites are met, most laws or "propaganda" improvements from the base game actually work like this.


SupportPrerequisites allow you to check if a specific Politics is represented in the senate.

The "1" in the example below represents how strong the support must be (going from 0 to 1, shared between all present politics):

<SupportPrerequisite Flags="Prerequisite,Discard" Politics="Politics01">1</SupportPrerequisite>

This PathPrerequisite checks if the Politics01 party (Industrialists) is leading:

<PathPrerequisite Flags="Prerequisite,Discard">../ClassEmpire/ClassSenate/ClassSenator,Politics01,PrimeSenator</PathPrerequisite>

And this final PathPrerequisite checks if the law LawP01L00 (which applies the descriptor "LawEffectP01L00") is currently active:

<PathPrerequisite Flags="Prerequisite,Discard">../ClassEmpire/ClassSenate/LawEffectP01L00</PathPrerequisite>

Note that if the law/politics become invalid while the improvement is being built, it will become invalid and block the construction queue.

If you don't want this to happen, you can replace the flag "Prerequisite" with "Enqueue", which means the SupportPrerequisite/PathPrerequisite will be checked only when starting the construction, instead of when starting and when it is queued.

Updated 7 years ago.
0Send private message
7 years ago
Jul 28, 2018, 11:42:09 AM

Thanks a lot for the clarification. However, I cannot get the government form prerequisite to work. I want an improvement to be available only if an empire is a democracy. I tried looking at the propaganda improvements but failed to reproduce the prerequisite.

0Send private message
7 years ago
Jul 30, 2018, 8:32:05 AM

Hey PawelMalecki,


Here's a prerequisite which checks if the empire is a Democracy:

<PathPrerequisite Flags="Prerequisite,Discard">../ClassEmpire/ClassSenate,GovernmentDemocracy</PathPrerequisite>

0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message