ENDLESS™ Space is a turn-based 4X strategy game, covering the space colonization age in the ENDLESS™ Universe. You control every aspect of your civilization as you strive for galactic dominion.
I'm trying to restrict an improvement to the player's home system, but I can't find a PathsPrerequisites that will work. Any ideas?
I tried looking for unique things that might only exist in the home system to use as a flag, but I can't find any. And I don't know what class or flag the game uses to identify the home system. I'm looking for something like:
$(ClassHomeStarSystem/PlanetSizeMedium)
Unfortunately if such exists, I can't find it. Help?
Not sure if this is doable but if you can have an improvement built in a players starting star system at the beginning of the game, set as something that cannot be built otherwise.
Then you could use the presence of that improvement, say a "government hub", as the prerequisite for later improvements.
This is speculation on my part never done anything with starting planet code myself.
Crymson wrote: Not sure if this is doable but if you can have an improvement built in a players starting star system at the beginning of the game, set as something that cannot be built otherwise.
Then you could use the presence of that improvement, say a "government hub", as the prerequisite for later improvements.
This is speculation on my part never done anything with starting planet code myself.
It's definitely doable by using "AddImprovementsOnHomeSystem" command. For example:
factionTrait.xml
[CODE]
%TraitColonizeHomeSystemTitle
%TraitColonizeHomeSystemDescription
%TraitColonizeHomeSystemTitle
%TraitColonizeHomeSystemDescription
%TraitColonizeHomeSystemTitle
%TraitColonizeHomeSystemDescription
[/CODE]
The problem is, such tag improvements can be destroyed either by bombs or enemy troops and can't be restored. Designating them as unscrappable (no upkeep) won't help much
All we need is to create a hidden empire improvement unlocked from the get go and providing a new variable applied only to the home system. Then use the new variable to define PathsPrerequisites for star system improvements buildable only in the capital. Something like this:
All we need is to create a hidden empire improvement unlocked from the get go and providing a new variable applied only to the home system. Then use the new variable to define PathsPrerequisites for star system improvements buildable only in the capital. Something like this:
Just one thing I'd mention for others, in StarSystemDescriptor.xml needs to be inside the wrapper for this to work. It won't work if you simply paste the text in, a mistake I made without thinking first go round.
But yes, this works! Haven't tested it losing the capital or anything but I assume it should work given the pointers involved. Thank you sir, i'll be adding you to the AGED credits for the next release.
LogicSequence
Old Survivor
LogicSequence
Old Survivor
12 900g2g ptsReport comment
Why do you report LogicSequence?
Are you sure you want to block LogicSequence ?
BlockCancelAre you sure you want to unblock LogicSequence ?
UnblockCancelCrymson
Stellar
Crymson
Stellar
8 700g2g ptsReport comment
Why do you report Crymson?
Are you sure you want to block Crymson ?
BlockCancelAre you sure you want to unblock Crymson ?
UnblockCancelVicarious
Newcomer
Vicarious
Newcomer
33 100g2g ptsReport comment
Why do you report Vicarious?
Are you sure you want to block Vicarious ?
BlockCancelAre you sure you want to unblock Vicarious ?
UnblockCancelLogicSequence
Old Survivor
LogicSequence
Old Survivor
12 900g2g ptsReport comment
Why do you report LogicSequence?
Are you sure you want to block LogicSequence ?
BlockCancelAre you sure you want to unblock LogicSequence ?
UnblockCancelCrymson
Stellar
Crymson
Stellar
8 700g2g ptsReport comment
Why do you report Crymson?
Are you sure you want to block Crymson ?
BlockCancelAre you sure you want to unblock Crymson ?
UnblockCancelVicarious
Newcomer
Vicarious
Newcomer
33 100g2g ptsReport comment
Why do you report Vicarious?
Are you sure you want to block Vicarious ?
BlockCancelAre you sure you want to unblock Vicarious ?
UnblockCancelLogicSequence
Old Survivor
LogicSequence
Old Survivor
12 900g2g ptsReport comment
Why do you report LogicSequence?
Are you sure you want to block LogicSequence ?
BlockCancelAre you sure you want to unblock LogicSequence ?
UnblockCancel