Modifying campaign battle duration

Sengoku Jidai: Shadow of the Shogun is a turn-based tactical and strategic game set during this turbulent time; primarily focusing on the Japanese Warring States period and Japanese Invasion of Korea. Other armies from East Asia are also made available to simulate different conflicts across the region.
Post Reply
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Modifying campaign battle duration

Post by Bombax »

Hi, is there a way to modify the default number of turns used in campaign battles?
Thanks,
Jay.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28376
Joined: Sun Dec 04, 2005 6:25 pm

Re: Modifying campaign battle duration

Post by rbodleyscott »

Bombax wrote: Thu Jan 29, 2026 11:29 am Hi, is there a way to modify the default number of turns used in campaign battles?
You should be able to do so by modding the StartCampaignBattle() function in /Data/scripts/CampaignTools.bsf

Line 4179 reads

Code: Select all

//SkirmishSetTurnLimit(20); // May be able to rely on default value from army list
If you remove the "//" comments marks and change the value, it should alter the number of turns.

Note that you should not alter your main build if you ever play multiplayer games.

See: https://archonwiki.slitherine.com/index.php/Modding

Note that this is the documentaton for the newer ARCHON engine, but most of it applies to the older STUB enginie in which Sengoku Jidai is written.
Richard Bodley Scott

Image
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Re: Modifying campaign battle duration

Post by Bombax »

Many thanks Richard, that's great - I'll give it a try.
Bombax
Staff Sergeant - StuG IIIF
Staff Sergeant - StuG IIIF
Posts: 266
Joined: Sat Jul 02, 2016 1:44 pm

Re: Modifying campaign battle duration

Post by Bombax »

Just tried it and it works a treat.
Thanks again Richard for helping with this - the level of support you're providing for this family of games is incredible!
Best wishes,
Jay.
Post Reply

Return to “Sengoku Jidai: Shadow of the Shogun”