Jump to content

campaigns - again


Recommended Posts

This is my second attempt to get ANY sort of answer from the people who know - using the two-Battle Campaign scripting example provided I cannot get any of my campaigns to go past two battles. I thought cut and paste (and filling in the relevant slots) would allow more. If I am missing some sort of two-battle limiter, please let me know - all I get is a .exe error which shuts me down just as the third Battle is loading.

ANY help welcome.

Link to comment
Share on other sites

You are absolutely right - here you go:

/*

Note the characters before and after this text. They allow designer to put in comments, or notes, such as why something was done a certain way. Anything between these characters is ignored by Combat Mission. Otherwise an error will occur when the Campaign is compiled.

*/

// Alternatively two back slashes can be entered to create a comment. There’s no functional difference between this method and the previous mentioned method.

/* Campaign Header*/

[PLAYER FORCE] blue // options are: blue/red

[HUMAN OPPONENT ALLOWED] no // no/yes

[bLUE VICTORY TEXT] You won!

[bLUE DEFEAT TEXT] You lost!

[RED VICTORY TEXT] You won!

[RED DEFEAT TEXT] You lost!

/*Battle #1*/

[bATTLE NAME] Marching Through Georgia // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN] Kobuleti

[NEXT BATTLE IF LOSE] Batumi // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

/*Battle #2*/

[bATTLE NAME] Kobuleti // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN] Burnati

[NEXT BATTLE IF LOSE] // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

/*Battle #3*/

[bATTLE NAME] Burnati // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN] Baghdadi

[NEXT BATTLE IF LOSE] // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

/*Battle #4*/

[bATTLE NAME] Baghdadi // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN] Zeda Sakara

[NEXT BATTLE IF LOSE] // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

/*Battle #5*/

[bATTLE NAME] Zeda Sakara // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN]

[NEXT BATTLE IF LOSE] // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

/*Battle #6*/

[bATTLE NAME] Batumi // note, do not include “.btt”, just the file name

[WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory

[NEXT BATTLE IF WIN] Kobuleti

[NEXT BATTLE IF LOSE] // a blank signals an end of the campaign

[bLUE REFIT %] 20 //always express this a number between 0 and 100

[bLUE REPAIR VEHICLE %] 40

[bLUE RESUPPLY %] 70

[bLUE REST %] 80

[RED REFIT %] 10

[RED REPAIR VEHICLE %] 10

[RED RESUPPLY %] 50

[RED REST %] 60

Link to comment
Share on other sites

I don't know what's wrong with your file, but I made a very simple 3 battle campaign for testing purposes. I used the 2 battle sample campaign txt file as starting point. Then I copied battle2's data to battle3 and edited battle names and those lines which tell next battle if you win or lose. In those I used the idea that if you win you get to next battle, if you lose campaign ends.

Using these steps the three battle campaign compiled ok and I was able to play all three battles without any crashes. I lost the last battle, yet the game told I won the campaign. Maybe that campaign text file needs some tweaking still smile.gif

Maybe not much help, but there's certainly no two battle limit.

Link to comment
Share on other sites

blow56,

There is a very easy way to test campaign scripts. Assuming the player will be Blue force, give Blue a Friendly Bonus of like 5000 points for each scenario so Blue automatically wins if you select "ceasefire". To get a loss, just select "surrender". This way you should be able to test all branches without actually playing a single battle. You just immediately click the menu button and select either ceasefire or surrender.

Hope this helps.

P.S. - Don't forget to take the bonus out once you have tested the script!

[ September 06, 2007, 12:15 PM: Message edited by: Cpl Steiner ]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...