Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Axem on June 19, 2004, 06:44:26 pm

Title: A spot of Fred help needed...
Post by: Axem on June 19, 2004, 06:44:26 pm
Alrighty. My little mini-campaign is nearly complete.

[Insert evil laughter here]

Er yes now then. There's a few issues in the missions that I want to see how to rectify. In the last mission there's a ton of side switching, and your initial orders are to destroy a fighter wing, but after a certain event, those orders are nulled. I have it set up with the 'or' condition. the two arguments being is-event-true-delay (the event where you're friendlier), and is-craft-destroyed-delay for the entire wing. Unfortunately how it's set up the orders only come up when the event is true and then it's already complete.

Ideas?
Title: A spot of Fred help needed...
Post by: ShadowWolf_IH on June 19, 2004, 07:04:03 pm
instead of is the "wing destroyed", would the "percentage ships destroyed" work better?  If the event is to come after a ship in that wing is destroyed then you make the percentage 25%, and list all four ships in that wing (the percentage of course assumes one ship in a wing of four)
Title: A spot of Fred help needed...
Post by: Axem on June 19, 2004, 07:11:03 pm
Hmm, I don't think so. It's supposed to go like this.

Command: Go kill them!
Alpha: Yay!
[Orders show Kill Wing Cancer]
[Time passes]
Command: No wait, don't kill them.
Alpha: Nuts.
[Objective now complete]

I still want the number remaining left to kill beside the directive. Is there anyway to remove the directive? That'd work too I think.
Title: A spot of Fred help needed...
Post by: ShadowWolf_IH on June 19, 2004, 07:13:37 pm
sure the directive will show complete once the statement is true....set the directive on an or statement....is destroyed, or blah blah.  is the event that triggers the IFF change a sure thing?
Title: A spot of Fred help needed...
Post by: karajorma on June 19, 2004, 07:21:12 pm
Not certain exactly what you're after Axem. How about showing us the events themselves?

If it's what I think it is though ShadowWolf seems to have covered it :)

EDIT : BTW how come no one uses the campaign forum for FRED questions? That's one of its main reason for existance you know :)
Title: A spot of Fred help needed...
Post by: Axem on June 19, 2004, 07:44:01 pm
Nope didn't work. The directives only appear when they got fufilled. Anyway, here's what I want to happen, what works and what doesn't.

1) Mission starts. Directives give orders to destroy all enemy fighters. Future friendly fighters ignore you for now. At present the orders to destroy the future friendly fighters doesn't work.

2) After a brief conversation with Command, they get upgraded to Unknown IFF. Here I want the destroy orders to now either be fufillied, or be plain removed. As stated as soon as they get to be Unknown IFF, the orders appear and get fufilled right away.

Here's a part of the mission copy pasted from Notepad.

$Formula: ( when
   ( or
      ( is-event-true-delay "Unknown IFF" 0 )
      ( is-destroyed-delay 0 "Aries" )
   )
   ( do-nothing )
)
+Name: Destroy Aries
+Repeat Count: 1
+Interval: 1
+Objective:  XSTR("Destroy Aries", -1)
+Team: 0

EDIT: Use the Fred forum eh... Oh well. Live and let die, I mean learn... yes learn. ;)
Title: A spot of Fred help needed...
Post by: karajorma on June 20, 2004, 03:16:02 am
IS this event chained to anything? If so that is probably the problem.

IIRC (off the top of my head)  there are two reasons a directive won't appear.

a) The ships involved aren't present
b) The directive is chained to an event that hasn't occured yet.

To me it sounds like you've chained the directive to the Unknown IFF event (or another event that comes true about the same time).
Title: A spot of Fred help needed...
Post by: Blaise Russel on June 20, 2004, 03:24:19 am
I've encountered this problem. For some reason directives won't show up if the conditions for fulfilling them involve an event-true-delay until that event is true. I think this probably also applies to other event SEXPs.

Can you use whatever triggers the Unknown IFF event in the directive? As in: Unknown IFF event triggers after has-arrived-delay Cancer 40, so the directive shows

when
or
is-destroyed-delay Cancer
has-arrived-delay Cancer 40
do-nothing

???
Title: A spot of Fred help needed...
Post by: Axem on June 20, 2004, 11:16:17 am
Thanks Blaise, that worked nicely. :)
Title: A spot of Fred help needed...
Post by: karajorma on June 20, 2004, 01:41:08 pm
Hmmm. Looks like a bug that need reporting to me :)
Title: A spot of Fred help needed...
Post by: Axem on June 21, 2004, 05:41:28 pm
Okay, one last question. How do I get the is-previous-event/goal-true/false to work? It only lets me select the current mission to choose from.
Title: A spot of Fred help needed...
Post by: Trivial Psychic on June 21, 2004, 10:23:38 pm
You have to type in the mission filename and event/goal name, manually.