Author Topic: Several questions.  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

Offline sigtau

  • 29
  • unfortunate technical art assclown
I've made a fairly simple mission where the player is basically dumped into a cargo depot, with three Poseidon freighters picking up three cargo units (one per freighter).  Their mission is to carry it to the node.  The player needs to have a minimum of 2 cargo units pass through the jump node.  A Fenris cruiser is offering fire support.  The mission is playable, and mostly functional, however a few details need to be covered before I can really fine-tune the level.

First off, it's obvious that the cargo units can be destroyed by enemy fighters easier than the freighter.  This leaves a lone freighter heading to the node.  I have three event-directives: Escort Sigma 1, Escort Sigma 2, and Escort Sigma 3, which are officially "completed" by having them warp out.  (They warp out upon reaching a certain waypoint).  I also have an objective set to go off once all of the Sigma ships have warped out.

1. How would I go about making the directive "negative" (a.k.a. having it turn red inside of the directives box) and have an objective status box appear announcing "Primary Objective Failed" if one of the cargo units is destroyed BUT the freighter carrying it isn't?

2. How do I make a Secondary Objective Failed box appeared when the Fenris is destroyed? I already have its warpout set as a secondary objective.

3. How do I detect how many cargo units (NOT freighters) managed to make it safely out when making the debriefing?  More importantly, could one walk me through the debriefing, seeing as this is a bit difficult for my second-made mission?

I'll post any more questions if I have them.
Who uses forum signatures anymore?

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
I would change the directives and objective to protect (insert cargo name here), instead of the freighters, if you want it that way.  Otherwise, they can lose them and still complete the mission (First mission of TAG, anyone?).  I think that the Secondary Objective Failed will appear if the objective is not checked as invalid at the beginning of the mission.  For the making it out safety, maybe a check-docked SEXP (or the like, I don't have it off the top of my head) right as it's jumping (if nothing is attacking it as it jumps) to make sure that it's still docked at the end of the mission.


 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Well 2 and 3 are the easy ones so lets start there.  For 2 all you should need is an and not is-destroyed-delay Fenris in the goal.  3 is even easier just use percent-ships-destroyed > or < depending on what you want.  So for to to make it it would be percent-ships destroyed < 67

Now the first one is a bit more difficult and it's a 2 parter.  The primary objective failed part is the easy half.  Just have it set to is-event-true directive.  Now the directive itself I need to think about for a minute.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Replying at the same time.  The question is can cargo depart when docked?  If so then yea the protect cargo directive will work.

Let me rephrase that.  Does cargo departing while docked result in the necessary log entry for protect to become true?
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline sigtau

  • 29
  • unfortunate technical art assclown
In the debriefing, when using percent-ships-destroyed, I was referring to the CARGO UNITS, not the freighters--you can't put the cargo units in a wing, but you can put the freighters in a wing.  I want to know how many CARGO UNITS survived, which, again cannot be placed in a wing.

How would I detect how many CARGO UNITS made it through?
Who uses forum signatures anymore?

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Percent-ships-destroyed takes more then just wings as arguments.  Just add all 3 ships to the sexp so it's

percent-ships-destroyed
--cargo1
--cargo2
--cargo3
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline sigtau

  • 29
  • unfortunate technical art assclown
This is what I see in the debriefing dialog, and I don't know how to add more than one "ship data" value to the SEXP.

Who uses forum signatures anymore?

 

Offline dragonsniper

  • 29
  • Master of the Irrelevant
    • Steam
Right click on "percent-ships-destroyed" and go to "add data." From there, just add the other two cargo crates.
Do or do not, there is no try...
~HLP Member and Modder~
          ~~2008-201x~~

 

Offline sigtau

  • 29
  • unfortunate technical art assclown
Alright, I have encountered an issue here--I followed your instructions.  One of the cargo boxes was destroyed, and I had a debriefing page for if 67% remained, you get the idea.

Well, since only 2 made it out, this one should have been set off--but instead, after a good 10 minutes of testing, I get a "no debriefing for mission" error.
Who uses forum signatures anymore?

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
you could also use a variable to check how many crates where destroyed, it's a little more harder to fred but much more powerful.

for that you should add a new variable (right click when creating an event and at the end you'll see the option to create a new variable, to modify it you should use the when-destroyed-delay -> modify-variable -> + -> "variable" -> "1" )
el hombre vicio...

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Screenshot of your debrief stage (you can edit out any text that might be a spoiler).  You can also try 68 just in case it's a rounding thing.  So basically in your case with 3 either do 99% remaining or 1% destroyed.  Only cut the straws if you need say 3 out of 5.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
1. How would I go about making the directive "negative" (a.k.a. having it turn red inside of the directives box) and have an objective status box appear announcing "Primary Objective Failed" if one of the cargo units is destroyed BUT the freighter carrying it isn't?

Change the directive to

when
and
-has-departed
--Freighter
-not
--is-destroyed-delay
---Cargo carried by freighter

Alright, I have encountered an issue here--I followed your instructions.  One of the cargo boxes was destroyed, and I had a debriefing page for if 67% remained, you get the idea.

Well, since only 2 made it out, this one should have been set off--but instead, after a good 10 minutes of testing, I get a "no debriefing for mission" error.

Nope. If only one of the cargo containers is destroyed 33.3% are destroyed. If two are destroyed 66.6% are gone. Which means that 67% will only trigger if all three containers are gone. Set it to 66% instead.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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