I'm (heavily updating) someone else's Dorsai mod to be even more ridiculous. I'm mostly just doing this for fun. I'm interested in porting over the expanding Psionics mechanics from Stellaris (especially the part with The Shroud), but I'd like to make it its own mechanic instead of just something you unlock on the tech tree.
One of the things I'm working on now is terraforming artifacts. The closest I've seen is just using that artifact that adds orbital slots. However, instead of adding orbital slots, I want to:
- Terraform the planet by changing its PlanetTraits. The PlanetClass is preserved, along with existing buildings and location of the tiles, but the planetary features are Re-Rolled.
- The PlanetTrait is randomized from a list. For example, it won't always terraform a planet to a DesertWorld, it can do one of DesertWorld / JungleWorld / BarrenWorld / etc. I don't mind if this ends up in a separate .xml file or is done in-line.
Here's the skeleton of what I wanted to use:
Code: xml
- <ArtifactPower>
- <InternalName>PsionicTerraforming</InternalName>
- <DisplayName>PsionicTerraforming_Name</DisplayName>
- <Description>PsionicTerraforming_Dec</Description>
- <Icon>artifact_techscanner.png</Icon>
- <SmallIcon>artifact_techscanner.png</SmallIcon>
- <Image>artifact_techscanner.png</Image>
- <TintColor>ArtifactPopulationBlue</TintColor>
- <UseSFX>UI/Artifact/Artifact_POWERSOUND_PLANETS</UseSFX>
- <ValidTarget>Colony</ValidTarget>
- <span style="white-space: normal;"> <ValidRelation>Self</ValidRelation></span>
- <AIPreference>
- <IgnoreBelowTurn>20</IgnoreBelowTurn>
- <UsePriority>
- <Priority>Lowest</Priority>
- <Stat>PlanetClass</Stat>
- </UsePriority>
- </AIPreference>
- <Triggers>
- <OnEvent>OnArtifactPowerUsed</OnEvent>
- <Target>
- <TargetType>Colony</TargetType>
- </Target>
- <Lifetime>Target</Lifetime>
- <Modifier>
- <span style="white-space: normal;"> <EffectType>UpgradeSlots</EffectType></span>
- <span style="white-space: normal;"> <Target></span>
- <span style="white-space: normal;"> <TargetType>Colony</TargetType></span>
- <span style="white-space: normal;"> </Target></span>
- <BonusType>Flat</BonusType>
- <Value>2</Value>
- </Modifier>
- </Triggers>
- <Triggers>
- <OnEvent>OnArtifactPowerUsed</OnEvent>
- <PerformAction>
- <Action>PlayEffectOnTile</Action>
- <ValueParam>1</ValueParam>
- <StringParam>FXBuff</StringParam>
- </PerformAction>
- </Triggers>
- </ArtifactPower>