Why won't this work? (Limited timed growth ability bonus)

Goal: An ability that increases the starting population of the homeworld... or alternatively (since I haven't gotten it to work) an obscene bonus to the homeworld or faction for a LIMITED period of time.

I used this code... no errors, but certainly not growth bonus.

    </Triggers>

      <Triggers>

      <OnEvent>OnStartTurn</OnEvent>

      <CriteriaTurnNum>1</CriteriaTurnNum>

        <Target> 

          <TargetType>Faction</TargetType>

        </Target>

        <Lifetime>Target</Lifetime>

        <RandomDurationMin>3</RandomDurationMin>

        <RandomDurationMax>3</RandomDurationMax>

        <Modifier>

          <EffectType>Growth</EffectType>

          <Scope>Global</Scope>

          <Target>

            <TargetType>Colony</TargetType>

          </Target>

          <BonusType>Multiplier</BonusType>

          <Value>10</Value>

        </Modifier>

        <SourceDisplayName>Hiver's Starting Bonus</SourceDisplayName>

      </Triggers>

 

Thoughts?

12,674 views 6 replies
Reply #1 Top

Use OnInitalShips not OnStartTurn (This acts wierd in my experience)

Lifetime - Instant.

Reply #2 Top

Did that prior to this. No avail sadly. 

Reply #3 Top

I reinstalled GC3 to test this. No matter what I try, having :-

        <RandomDurationMin>3</RandomDurationMin>

        <RandomDurationMax>3</RandomDurationMax>

In the code will cause it to fail. Seems to me this part of the code is linked to PreformAction only. Sad.

Reply #4 Top

Quoting Horemvore, reply 3

I reinstalled GC3 to test this. No matter what I try, having :-

        <RandomDurationMin>3</RandomDurationMin>

        <RandomDurationMax>3</RandomDurationMax>

In the code will cause it to fail. Seems to me this part of the code is linked to PreformAction only. Sad.

Or RandomDurationMax must be greater than RandomDurationMin?

Reply #5 Top

It does not. Numerous functions use it to ensure a set duration instead of random. 

Reply #6 Top

Also no worries. Whilst a random duration bonus (or set) may not be doable through an ability, I did finally get abilities that only affect your homeworld to work, and that's a pretty good alternative for my ends.

 

Thanks for looking into Horemvore!