The scheduling for scripted sequences of missions is controlled in the scripts, in the .cpp file where you set up the team you'll find a schedule-next-mission method (for human playable teams at least). In there you'll see a line where you can include the title of the next mission. E.g.:
Code:
void tAttackTeam::mScheduleNextMission( tVictoryCondition* VictoryCondition )
{
fMissionScheduler.fVictoryLevel = VictoryCondition->mCalcVictoryStatus( mGetTeam() );
fMissionScheduler.fPrestige = VictoryCondition->mGetPrestigePoints( fMissionScheduler.fVictoryLevel );
fMissionScheduler.fBonusPrestige = VictoryCondition->mGetBonusPrestige();
fMissionScheduler.fNextMissionScore = 0; // <== I'm rusty on what the score is
// I think it's just a weighting with bigger numbers making it more likely
// .... 300 seems to work :)
fMissionScheduler.fNextMissionTitle = ""; // <== put the name of the next mission in the string here,
// e.g. "Uni_mymission"
}
dave
Quote:
The scheduling for scripted sequences of missions is controlled in the scripts, in the .cpp file where you set up the team you'll find a schedule-next-mission method (for human playable teams at least). In there you'll see a line where you can include the title of the next mission. E.g.:
Code:
void tAttackTeam::mScheduleNextMission( tVictoryCondition* VictoryCondition )
{
fMissionScheduler.fVictoryLevel = VictoryCondition->mCalcVictoryStatus( mGetTeam() );
fMissionScheduler.fPrestige = VictoryCondition->mGetPrestigePoints( fMissionScheduler.fVictoryLevel );
fMissionScheduler.fBonusPrestige = VictoryCondition->mGetBonusPrestige();
fMissionScheduler.fNextMissionScore = 0; // <== I'm rusty on what the score is
// I think it's just a weighting with bigger numbers making it more likely
// .... 300 seems to work :)
fMissionScheduler.fNextMissionTitle = ""; // <== put the name of the next mission in the string here,
// e.g. "Uni_mymission"
}
dave
according to the API itself, if you put 1000 for the NextMissionScore, it claims this will guarantee the next scheduled mission will be the one offered.
This method also has some other interesting features (which work) such as recommending medals as well