Part 9: Military requests

The standard way for setting up military requests is using the classes in Tools.cs as explained on the Scripting Military Requests page.

I include these two methods for completeness, as they do not seem to have any obvious use. Both are called within Tools.cs as part of the MilitaryRequest.AddMilitaryRequest method. They could be used to set up a military request by an alternative means; however, since they does not allow you to do anything that can't be done via the MilitaryRequest class, there is no obvious gain (Calling them from OnTick has no effect.)

AddTroopRequestCohort(int inRequestID, ref string inCohortID, int inNumCohorts)

CreateTroopRequest(int inRequestID, int inStartWeek, int inRecursionWeeks, int inVariance, int inFirstWarning, int inSecondWarning, int inDeadline, int inReward, int inPenalty, int inTravelTime, int inWorldSiteIndex)

< Previous: Invasions | Editor Guide | Next: Building IDs >