Author Topic: Objectives  (Read 1558 times)

0 Members and 1 Guest are viewing this topic.

Offline Ryan

  • 27
I know that i sound like some whiny noob who just wont go away. But there is one problem I'm having that wont quite.

I Am having fun making my first mission, i have Shivan fighters come in and.... They fight. The problem is, the player can warp out whenever they want to. I want to create an objective.

As in, Destroy Scorpio, Destroy Cancer, ETC. I put in the Mission objective thingy somebody else mentioned and FRED crashed. Can somebody please tell me exacly what to put in the mission objective or Event Editors so that i can tell wings to Kill Scorpio?


  
For the warpout thing: You would need to create an event in the Events editor that triggers true only when an important objective is accomplished. From there it is simple to create a "traitor" debriefing (which only means you yell at the player a bunch and threaten court martial and stuff like that) that triggers if the event is not complete.

Alternatively, you could simply use the never-warp sexp to trap the player in the mission until a certain point.

What you are referring to as "objectives" are actually directives, I think. When you make an event in the Events editor, you can also make a directive simply by putting stuff in the "Directive Text" box near the bottom. That text would then be linked to that event (an event's little bullet point will turn red if there is text associated with it). When the event returns true, the directive (in-game) will turn blue (hey, that rhymes!  :D). Anyway, you should be careful to link your event in such a way that the directive only appears when it is relevant. A directive like "Scan cruiser" appearing at the beginning of a mission in which the cruiser isn't discovered until halfway through just looks silly.

Hope that helps.
"You need to believe in things that aren't true. How else can they become?" -DEATH, Discworld

 

Offline Ryan

  • 27
Not that, i mean like this:

The one mission where you have to protect the ICENI to get the ETAK device. I can put the directive to say "Protect X" ship. But then it blows up and i get no objective failed thing. How do i get it to have to NOT be destroyed to win?

Same with killing something, unlike protecting a ship, i don't know how to give the objective to destroy one either. Like i said, I'm a super noob. I have no idea what the frack I'm doing when it comes to mission objectives.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
I think the best place for you to start is open up the mission you are wanting yours to be like and take a look at how they did it.  You can extract the missions using vpview available in the tools folder.  Once you look at the mission objective and events of a working mission you will get a better understanding. 

As to your question if you are talking about where it says primary objective complete in the middle of the screen when you do something those go under the mission objective editor.  If you want it to show up on the left hand side like destroy transports x you need to create an event with directive text.  If you want both you have the mission objective do an is-event-true-delay on the mission objective.  If you want the ship to show up in the list on the right you make it an escort ship in the ship editor.

Example event on destroying a wing called Scorpio

kill scorpio
when
-->is-destroyed-delay
---->6
---->Scorpio
-->do nothing

Directive text "Destroy Scorpio"

Example mission goal based on that wing being destroyed

when
-->is-event-true-delay
---->0
---->kill scorpio


Example debrief (assumes standard RTB event)

Leave early
-->is-event-false-delay
---->0
---->RTB
You had no authorization to leave the area pilot

Loosing stage
-->and
---->is-event-false-delay
------>0
------>kill scorpio
---->is-event-true-delay
------>0
------>RTB
You failed message

Winning stage
-->and
---->is-event-true-delay
------>0
------>kill scorpio
---->is-event-true-delay
------>0
------>RTB
Good job message
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 Ryan

  • 27
Ok, I've done ALOT of work on my mission and i think i have FREDing about down, but i have afew bugs i can't seem to fix. The Objective to destroy a wing is there at the Start of the mission, despite what people here are saying. Then they show completed as soon as the wing enters. And i Can't figure out how to  Chain events. Can anybody please help me?

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Wait a minute how can the wing enter if it is there at the beginning?

Since I already typed this before I reread your post the objective should look something like this IF the wing is there at the beginning.

is-destroyed-delay
-->2
-->(wing name)

Alternately you could make an event

When
-->is-destoryed-delay
---->2
---->(wing name)
-->(whatever you want to do if anything)

and the objcetive would be
-->is-event-true-delay
---->(event name)
---->2

I put 2 for the delay.  It can be anything you want.


To chain events they have to be listed right after each other in the event editor.  For example the list of event names below if you wanted to chain RTB to win you would click on RTB and check chained. 

Kill cap
Loose
Win
RTB
Messages

After that a chain link should appear to the left of the event name.  This event will not be evaluated until the previous event (in this case Win) becomes 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