Galactic Civilizations IV: Supernova Galactic Civilizations IV: Supernova Galactic Civilizations IV

Granting a racial ability through an event or on startup.

Published on Sunday, December 17, 2023 By maltheopia4296 In GalCiv IV Modding

What the title says. I'm trying to mod in a race trait that gives you other race traits. I'm doing this because I want to make a super-overpowered villain faction so I can have several species unite and fight against it, but I also don't want to clutter the UI. I basically want to give them all of the player faction traits like Adaptable, Slavers, etc. but instead of having a very long list of traits I just want to give them the abilities for it, mostly for the tech unlocks. That way they can build extremely tall from their small amount of planets.

Here's what I have so far. The game won't start up, something about scope. I'm open of other wants to doing this, such as through a invisible event the players can't see or trigger.

Code: xml
  1. <RaceTrait>
  2. <InternalName>TimelordsAbility</InternalName>
  3. <DisplayName>TimelordsAbility_Name</DisplayName>
  4. <DisplayNameShort>TimelordsAbility_ShortName</DisplayNameShort>
  5. <Description>TimelordsAbility_Dec</Description>
  6. <span style="white-space: normal;"> <IsAbility>1</IsAbility></span>
  7. <span style="white-space: normal;"> <Available>false</Available></span>
  8. <span style="white-space: normal;"> <Triggers></span>
  9. <OnEvent>OnStartTurn</OnEvent>
  10. <CriteriaTurnNum>1</CriteriaTurnNum>
  11. <Scope>Global</Scope>
  12. <Target>
  13. <TargetType>Faction</TargetType>
  14. </Target>
  15. <Lifetime>Instant</Lifetime>
  16. <span style="white-space: normal;"> <Modifier></span>
  17. <span style="white-space: normal;"> <RaceTraits>LoyalAbility</RaceTraits></span>
  18. <span style="white-space: normal;"> </Modifier></span>
  19. <span style="white-space: normal;">  <DisplayOnTooltip>false</DisplayOnTooltip></span>
  20.     </Triggers>