Author Topic: From Bonus goal to next mission  (Read 2552 times)

0 Members and 1 Guest are viewing this topic.

From Bonus goal to next mission
Let's say a bonus goal was achieved in mission 1 and this means that the "bonus" is an additional ship in the next mission:

Do I have to use the branches in the campaign editor to make 2 missions (which are technically the same, but 2a has the ship in the hangar to choose from and 2b has not) or is there another way?

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: From Bonus goal to next mission
Nope. Use the allow-ship sexp.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: From Bonus goal to next mission
Let's say a bonus goal was achieved in mission 1 and this means that the "bonus" is an additional ship in the next mission:

What do you mean with "an additional ship"? Is it an additional ship choice in the load-out or will an additional AI controlled ship arrive/be present in the mission?

Either way however you will not need a 2nd mission file...
"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

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"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

"...because they are not Dragons."

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: From Bonus goal to next mission
(sry for double post)

In case A (additional ship choice in the loadout) you can follow the route which mjn.mixael was pointed out: In Mission 1 create an event that turns true when the bonus objective becomes true (e.g. with the "is-goal-true-delay"-operator found in the "events and goals"-category of the menu), as effect replace the "do-nothing" with "allow-ship" and enter the required data. In Mission 2 you can then add the ship to the load-out as normal. However when creating the campaign file in campaign editor do not add said ship to list of ships allowed by default.
When testing the missions file by file there will be no noticable change only once they are strung together as a campaign (which is one of the last things you should do, because as soon as there is a campaign file you can no longer test the missions one by one).

In case B (an additional NPC ship appears) you simply have to set said ships arrival cue in Mission 2 with "previous-goal-true-delay". That one is a bit tricky as you have to manually set the data for that SEXP and FRED will not warn you of input errors. On the bright side for the purposes of testing the optional 4th argument to that SEXP allows you to set a default state (true or false) that the game will reference unless the mission is played as part of campaign that includes Mission 1.

"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

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"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

"...because they are not Dragons."

 
Re: From Bonus goal to next mission
I just needed the case with an additional ship choice in the loadout, but the other one is good to know as well!  Ask one, get one free  :lol: :lol:

Thx guys, this helped a lot!

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: From Bonus goal to next mission
Make that two free. :D

There's also a Case C which is similar to Case A. You aren't limited to only allowing the ship to be available after the bonus goal. Suppose the player has already flown an Ares in the campaign at some point but can't fly them in the mission after the bonus goal unless they achieve the bonus. In this case you can't simply use allow-ship since that SEXP enables the ship to be used in any mission for the rest of the campaign so it must have already been used to enable the player to fly an Ares in the earlier mission.

What you can do is set a persistent variable called say NumberOfAres in mission 1 and then in mission 2 in the loadout editor you'd set the number of Ares in loadout to equal NumberOfAres. If the variable is set to 0, the Ares will not be available.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: From Bonus goal to next mission
Semi-related: what's the purpose of the allow-ship sexp when you can just control what ships are available per-mission using the loadout editor? Why not make all ships available, but default to 0 unless configured in FRED?

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: From Bonus goal to next mission
So that you can dynamically add/remove ships from the loadout based on the events of previous missions.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: From Bonus goal to next mission
Also so you can hide Easter Eggs in your campaigns :D
My Drums of War-campaigns for The Babylon Project each have an Easer Egg that allows you to fly the Shadow fighters in most missions once it is triggered. Shadow Fighters are by design hiddiculously overpowered for every single mission.
"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

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"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

"...because they are not Dragons."

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: From Bonus goal to next mission
Semi-related: what's the purpose of the allow-ship sexp when you can just control what ships are available per-mission using the loadout editor? Why not make all ships available, but default to 0 unless configured in FRED?

The loadout variable stuff was added by me. So until I did it you only had the allow-ship SEXP. If you wanted to allow a bonus ship, it was your only option. You can see the way it was used in the main FS2 campaign to enable the Ares.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: From Bonus goal to next mission
Man, there is so much good stuff in FSO I take for granted since I never reallty fredded on retail. Good to know - thanks for putting that in there! Super useful feature :)

 
Re: From Bonus goal to next mission
Also so you can hide Easter Eggs in your campaigns :D
My Drums of War-campaigns for The Babylon Project each have an Easer Egg that allows you to fly the Shadow fighters in most missions once it is triggered. Shadow Fighters are by design hiddiculously overpowered for every single mission.

Yeah, kill all Centauri transports before they reach the station. I discovered it a while ago  :D (And, to be honest, it inspired me to use something like this in my own campaign ;) ) Though my bonus ship won't be that overpowered, but it was fun to play with the shadow fighters  :lol:

and @ karajorma/buff skeleton: the default to 0 way might also be interesting, thx! :)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: From Bonus goal to next mission
Man, there is so much good stuff in FSO I take for granted since I never reallty fredded on retail. Good to know - thanks for putting that in there! Super useful feature :)

By this point about half of the features in FRED are SCP additions. A great example of how much has changed is the Misc Ship Properties dialog.

Retail



SCP




And that's an old pic. There are probably a few new ones. You might also want to take a look at the ridiculously small number of SEXPs retail had to work with.

Quote
Conditional
There is only one operator in this group, when. It is the top-level operator in most events ("When this happens, do these things"), and returns a boolean value.

Imagine having to do everything with only the when operator!
« Last Edit: October 23, 2016, 03:30:39 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: From Bonus goal to next mission
No When-Argument?! SAY IT WASN'T SO!
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.