Increasing AI prestige earnings later in scenario?

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
Spaznetz
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 26
Joined: Fri Mar 09, 2018 4:42 pm

Increasing AI prestige earnings later in scenario?

Post by Spaznetz »

Is there a way to increase the amount of prestige earned by the AI as turns go by?

Something like 30/turn to start, jumping to 40/turn on turn 4, and then 50/turn on turn 7.

I know that I can change the initial amount of prestige and the prestige per turn using the scenario editor, but I'd like to make it so that the AI gets an increasing amount of prestige per turn the longer the scenario goes on.

Is it even possible?
captainjack
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1912
Joined: Thu Sep 13, 2012 7:42 am

Re: Increasing AI prestige earnings later in scenario?

Post by captainjack »

You can script prestige increases. Unfortunately, the script editor doesn't appear to do basic maths so you can't say [prestige boost = turn number x amount]. Instead you have to use a lot of repetition.

So for example, script it so that one turn 1 add 25 prestige, another script adds 50 on turn 2, another adds 75 on tuurn 3 and so on.
It is a bit less work to add a larger amount less often - turn 4 add 250, turn 8 add 500, turn 12 add 750 prestige.

I'm really hoping someone has a better way!
Spaznetz
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 26
Joined: Fri Mar 09, 2018 4:42 pm

Re: Increasing AI prestige earnings later in scenario?

Post by Spaznetz »

captainjack wrote:You can script prestige increases. Unfortunately, the script editor doesn't appear to do basic maths so you can't say [prestige boost = turn number x amount]. Instead you have to use a lot of repetition.

So for example, script it so that one turn 1 add 25 prestige, another script adds 50 on turn 2, another adds 75 on tuurn 3 and so on.
It is a bit less work to add a larger amount less often - turn 4 add 250, turn 8 add 500, turn 12 add 750 prestige.

I'm really hoping someone has a better way!

The scripted way isn't exactly elegant, but it is better than just handing the AI a ton of prestige at the start of the scenario. That method just gets a bunch of front-loaded unit spam instead of the steady increase in resistance that I'm looking for.

As always, captainjack, thanks for the info.
dalfrede
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1490
Joined: Wed Mar 15, 2017 7:48 pm

Re: Increasing AI prestige earnings later in scenario?

Post by dalfrede »

There are two ways to add prestige.
With examples.

1) Scenario Params -> Sides :
Prestige per turn 100

2) Scenario Params -> Scripts :
Beginning of Turn [10 -1] ; Run Count = 5 ; Add Axis prestige 500

Which should give 100 points turns 1 - 9, 600 points turns 10 - 15, 100 points turns 16+.

The Run Count variable reduces the number of lines needed.
There comes a time on every project when it is time to shoot the engineer and ship the damn thing.
captainjack
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1912
Joined: Thu Sep 13, 2012 7:42 am

Re: Increasing AI prestige earnings later in scenario?

Post by captainjack »

Thanks Dalfrede.
It's always good to find another scripting tool.
Spaznetz
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 26
Joined: Fri Mar 09, 2018 4:42 pm

Re: Increasing AI prestige earnings later in scenario?

Post by Spaznetz »

dalfrede wrote:There are two ways to add prestige.
With examples.

1) Scenario Params -> Sides :
Prestige per turn 100

2) Scenario Params -> Scripts :
Beginning of Turn [10 -1] ; Run Count = 5 ; Add Axis prestige 500

Which should give 100 points turns 1 - 9, 600 points turns 10 - 15, 100 points turns 16+.

The Run Count variable reduces the number of lines needed.
Thank you, dalfrede!!!

Assuming that substituting 'Allies' for 'Axis' would give the additional prestige to the other side, I think I have everything I need to make things much more difficult for myself. :twisted:
Post Reply

Return to “Panzer Corps : Scenario Design”