Is it possible to set up random reinforcements?
So instead of reinforcements showing up on turn 5 they would show up between turn 4 and turn 10?
random reinforcements?
Moderators: rbodleyscott, Slitherine Core, Gothic Labs
Re: random reinforcements?
I am sure it would be possible, but not by using the Editor method of reinforcement. You would have to use the scripted method, and then add a script to add a random element to the reinforcement. I wrote a guide to using the scripted method in the Field of Glory 2 forum, FOG2 uses similar mechanics to Pike and Shot, but there maybe some differences;
viewtopic.php?f=491&t=81096
I have never had random reinforcements in any of my scenarios, so I don't know what the actual random element script would look like.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Field of Glory II Medieval Scenario Designer.
FOGII TT Mod Creator
Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Re: random reinforcements?
Your question seemed interesting to me. I thought about it. And here's the script:
1) export your reinforcement to (ScenarioName).BSF with the editor;
2) open the (ScenarioName).BSF and add the next blocks - to FUNCTION PreBattleSetup()
Code: Select all
int b
b = SkewedRandom(8, 20, 0);
SetGlobal("B", b);
Code: Select all
int a;
int c;
a = GetTurn();
c = GetGlobal("B");
// Autogenerated script for reinforcement group 0 on side 0 - Paste this code into your StartTurn function:
if (a == c)
{...
}
Re: random reinforcements?
Richard wrote a script for me to use in my Waterloo scenario so that the Prussian unit arrive over a range of 2-3 turns. If you look at the Waterloo BSF you should find the relevant code.
Good luck.
Good luck.
Re: random reinforcements?
Thank you for the help, I will give them A try!