Author Topic: Splitting campaign and transfering variables  (Read 80 times)

0 Members and 1 Guest are viewing this topic.

Splitting campaign and transfering variables
Hey guys, due to time shortage my plans of releasing a campaign have been interrupted... But I think I'm at the right point in the campaign to split it into two different parts (~ 20 missions are done and there's even some kind of Cliffhanger...).

Iirc, with one of the last updates, a new kind of variable was introduced that let's you carry over the information of variables from one campaign to another. So am I right if I just need to copy via Sexp all the information (money available, ships, ammunition available and weapons gathered) during the campaign into these new variables, so they can be used by the pilot profile when starting the 2nd part later on?

I hope you get what I'm talking about... Since the time shortage won't go away any time soon, it would be a shame to just let these missions rot on the hdd... The story works well until here and all the missions are nearly complete.

Greatings!

 

Online wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Splitting campaign and transfering variables
Yes that is correct. In the variable dialog box there is a check box for eternal variables, which will carry between campaigns.

 
Re: Splitting campaign and transfering variables
Wouldn't it be possible to save them as txts too? I think quite many use the 1-player-per-campaign rule, so it's quite likely that the progress won't be available if the rest will be released a couple years later.

 

Online wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Splitting campaign and transfering variables
It's certainly possible to save as text (I've used that method before), but that requires a good amount of scripting knowledge and I wouldn't recommend that for this situation. I would imagine the player could just play through the first release again once the second release comes out.  :) 

 
Re: Splitting campaign and transfering variables
Sure (and I'm 90+% sure that this would be the best way to go).

Wouldn't it be possible to safe the stats via the checkpoint-script, than load them from another mission?

 

Online wookieejedi

  • 28
  • Intensify Forward Firepower
Re: Splitting campaign and transfering variables
Sure (and I'm 90+% sure that this would be the best way to go).

Wouldn't it be possible to safe the stats via the checkpoint-script, than load them from another mission?

Yeah, that could certainly be another route too, since the check-point script writes it's own save file :)

  

Offline 0rph3u5

  • 211
  • Someone should label the Future: Assembly Required
    • Steam
    • Twitter
Re: Splitting campaign and transfering variables
Iirc, with one of the last updates, a new kind of variable was introduced that let's you carry over the information of variables from one campaign to another.

The feature existed since retail but the original descriptors were a bit misleading - the rework made it 99 percent more usable (give eternal thanks to the great Coder Gods of the SCP for that).

Note that any given mission can only referrence 258 (please verify) variables total - and I don't know what you are doing but I have noticed them piling up like crazy in campaigns with persistence :)

And there is a limit on the number of eternal variables, which I don't recall...
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

"...because they are not Dragons."