News

Remove planet on event?

Posted on Tuesday, May 19, 2015

I've been trying to force a modded civ to start out homeless, like the Terrans do in the Tutorial, but I'm having no luck. I tried makinga galactic event to force the homeworld to be removed as the game starts:

 
   <GameEvent>
    <InternalName>HomelessCivsEvent</InternalName>
    <DisplayName>HomelessCivsEvent_Name</DisplayName>
    <Description>HomelessCivsEvent_Dec</Description>
    <ArtDefine>Colonizing_Event_SolarFlare.png</ArtDefine>
    <Type>GalacticEvent</Type>
    <Weight>50</Weight>
      <Trigger>
        <OnEvent>OnStartTurn</OnEvent>
        <CriteriaTurnNum>1</CriteriaTurnNum>
        <Target>
          <TargetType>Planet</TargetType>
        </Target>
        <Lifetime>Instant</Lifetime>
        <PerformAction>
          <Action>DestroyObject</Action>
        </PerformAction>
      </Trigger>
  </GameEvent>

But nothing happens. I think the most likely problem is that there is no indication of which planet the event should remove, but I couldn't find a way to indicate that. Strangely, the only other event where DestroyObject is used (remove a Starbase in someone else's territory), the system seems to know which starbase it is about automatically.


PS. Please don't suggest giving my custom race the "DeadSystem" homeworld, I know it exists, but it doesn't fit my idea.