Auto Generating Legions via Improvement Mods - Please Help

I have spent 3 nights trying to find a creative solution to this idea, but I may be running headlong into schema restrictions.

I am trying to mod the Military Academy to generate legions on a per turn basis.  They are provided by the General Citizen as "AwardSpecificResource".  I tried adding similar code to the Improvement and setting a trigger of OnTurnStart (or something close to that, I think I'm getting delirious).  The idea was to get the improvement to award a legion each turn, but I'm being told I can't use "Triggers" by the error message.

I am accepting any and all bright ideas, I really think the drag on large-scale games for a conquest victory becomes waiting for legions to become available in order to carry out invasions.

As a plan B, I'd take ideas on how to make an Improvement periodically create a citizen type (Not every turn though, I'd want to pace it), and then have it just create a new general and their associated legions.  Frankly, this would open some really cool options for new Improvements the generated other Citizen Types (e.g. Starfleet Academy could create Commanders, Daystrom Institute could create Scientists, etc).

10,062 views 3 replies
Reply #1 Top

I don’t know if this is possible. If it is and there is a way to tune it so it was balanced or if it was just balanced this would be my first mod download and probably my only mod. 

Good luck.

Reply #2 Top

There are no StatTypes for granting legions per turn (they are not in that table).

Triggers from imprvements will not accomplish what your after.

Same deal for your per x turn idea for citizens either.

However, you could probable accomplish all or most of it via an ability, you can edit the current race types if you intened for it to effect everyone and even add a bit of verity.

Reply #3 Top

I have found something resembling what you are after. I was working roughly the same issue from the other side, trying to get free garrisons so that a single transport couldn't take five worlds in a row and planning to just remove the resource cost of legions. I did not find any way to do it on a per turn basis, but I did find out how to do it on planet conquest.


    <Triggers>
      <OnEvent>OnConquerPlanet</OnEvent>
      <Target>
        <TargetType>Colony</TargetType>
      </Target>
      <Lifetime>Instant</Lifetime>
      <PerformAction>
        <Action>AwardSpecificResource</Action>
        <ValueParam>5</ValueParam>
        <StringParam>LegionsAvailable</StringParam>
      </PerformAction>
    </Triggers>

A slightly different wording gives me the garrisons I wanted, and as it was a quick test from what I already had I checked this for legions and it worked.