Author Topic: A spot of Fred help needed...  (Read 2044 times)

0 Members and 1 Guest are viewing this topic.

Offline Axem

  • 211
A spot of Fred help needed...
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?

 

Offline ShadowWolf_IH

  • A Real POF Guy
  • 211
    • CoW
A spot of Fred help needed...
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)
You can't take the sky from me.  Can't take that from me.

Casualties of War

 

Offline Axem

  • 211
A spot of Fred help needed...
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.

 

Offline ShadowWolf_IH

  • A Real POF Guy
  • 211
    • CoW
A spot of Fred help needed...
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?
You can't take the sky from me.  Can't take that from me.

Casualties of War

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
A spot of Fred help needed...
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 :)
« Last Edit: June 19, 2004, 07:26:18 pm by 340 »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Axem

  • 211
A spot of Fred help needed...
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. ;)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
A spot of Fred help needed...
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).
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Blaise Russel

  • Campaign King
  • 29
    • http://mysite.freeserve.com/sbre/index.html
A spot of Fred help needed...
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

???

 

Offline Axem

  • 211
A spot of Fred help needed...
Thanks Blaise, that worked nicely. :)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
A spot of Fred help needed...
Hmmm. Looks like a bug that need reporting to me :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Axem

  • 211
A spot of Fred help needed...
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.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
A spot of Fred help needed...
You have to type in the mission filename and event/goal name, manually.
The Trivial Psychic Strikes Again!