Jump to content

exist it a tutorial to create a campaign ?


Recommended Posts

Not sure where you read it but you don't need any code. All the necessary basics are explained in the manual. Maybe with "code" you're referring to the campaign script file? You need that to create the .cam file, but it's not code, it's a simple text file, and the format is explained in the manual, too.

Link to comment
Share on other sites

No, just the basic text will do. You'll find that in a file somewhere in your games files called 'My little campaign' or something like that. That's all you'll need to get you started. Once you've found that, get two or three scenarios that you've made (or adapt somebody elses scenarios) and try your hand at compliling. It looks easy but you'll make mistakes and debugging can take quite a bit of time. Don't wait until you're nearly finished to start doing this.

Link to comment
Share on other sites

Or you can copy and paste this...:)

[PLAYER FORCE] blue

[HUMAN OPPONENT ALLOWED] no

[bLUE VICTORY TEXT] Congratulations. The mission was a complete success.

[bLUE DEFEAT TEXT] Your failure to complete this mission has resulted in the termination of this military operation for the day.

[RED VICTORY TEXT] You won!

[RED DEFEAT TEXT] You lost!

/*Battle #1*/

[bATTLE NAME] The Road to Perdition

[WIN THRESHOLD] minor victory

[NEXT BATTLE IF WIN] Depot

[NEXT BATTLE IF LOSE]

[bLUE REFIT %] 0

[bLUE REPAIR VEHICLE %] 75

[bLUE RESUPPLY %] 0

[bLUE REST %] 0

[RED REFIT %] 0

[RED REPAIR VEHICLE %] 0

[RED RESUPPLY %] 0

[RED REST %] 0

/*Depot mission*/

[bATTLE NAME] Depot

[WIN THRESHOLD] draw

[NEXT BATTLE IF WIN] Descent

[NEXT BATTLE IF LOSE]

[bLUE REFIT %] 0

[bLUE REPAIR VEHICLE %] 50

[bLUE RESUPPLY %] 100

[bLUE REST %] 100

[RED REFIT %] 0

[RED REPAIR VEHICLE %] 0

[RED RESUPPLY %] 0

[RED REST %] 0

/*Battle #2*/

[bATTLE NAME] Descent

[WIN THRESHOLD] minor victory

[NEXT BATTLE IF WIN] Perditions Flames

[NEXT BATTLE IF LOSE]

[bLUE REFIT %] 0

[bLUE REPAIR VEHICLE %] 50

[bLUE RESUPPLY %] 0

[bLUE REST %] 0

[RED REFIT %] 0

[RED REPAIR VEHICLE %] 0

[RED RESUPPLY %] 0

[RED REST %] 0

/*Battle #3*/

[bATTLE NAME] Perditions Flames

[WIN THRESHOLD] minor victory

[NEXT BATTLE IF WIN]

[NEXT BATTLE IF LOSE]

[bLUE REFIT %] 0

[bLUE REPAIR VEHICLE %] 0

[bLUE RESUPPLY %] 0

[bLUE REST %] 0

[RED REFIT %] 0

[RED REPAIR VEHICLE %] 0

[RED RESUPPLY %] 0

[RED REST %] 0

Link to comment
Share on other sites

That's a working script for a linear three mission campaign. Combined with the manual, you now have all the info you need to write a compaign script of any length and complexity. (The script for Hasrabit has over 400 lines of text.) Copy and paste is your friend here. You don't have to write out every single line.

As for the campaign briefing, well that goes into the core units file just like a normal briefing. Your best way forward now is to experiment with what you've got. Try compiling a 2 or 3 mission campaign and get back to us if you have any problems.

Link to comment
Share on other sites

Another question.

in the unity kernel, is necessary you it to put the two camps or just the camp of the player?

For the remainder I think to have understood.

it suffices to create a card as for a single scenario...

Whew, unity kernel? WTF is that?! :D

Do you mean parameters for the Computer controlled side? If that's so and the computer doesn't have Core forces in that mission then no, you can leave the computer opponents resupply replacement lines with a value of 0.

And yes, you need one 'card' for each scenario. If there are two or more different versions of the same scenario (Branches) then you need a 'card' for each one.

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...