Dear HLP,
I've run into a bit of trouble with SEXPing here. Here's the situation: the player and a wingman are raiding a bunch of cargo containers guarded by sentry guns. There are nine cargo containers there, and the player must scan them. Containers 1 and 3 are crucial to the mission and must not be destroyed, whilst the others are expendable. I'm trying to FRED two events: one which checks if the player has scanned all the cargo (ie none of it is destroyed, which yields a bonus objective) and gives the directive "scan all cargo" . That's easy enough, and works fine. The other event only triggers if the first one is false, that is, if some of the cargo has been destroyed. I want this event to give the directive "scan remaining cargo", and to return true using a huge bunch of ands and ors when a) containers 2 and 4-9 are either destroyed or scanned and b) when containers 1 and 3 are scanned. Now the problem is not the event itself as I think I've FREDded it correctly. The problem is the little numbers next to directives. For the first event the directive initially reads "Scan all cargo [9]" and the number decreases as cargo is scanned. Now if any of the cargo is destroyed this directive becomes false (turns red) and the second directive "Scan remaining cargo" comes up. However, the number next to this second directive starts at 14! This is definitely not the number of cargo containers remaining. I assume this is because the system treats both branches of each or as one number. Now, I am almost 100% certain there is a much more efficient way of FREDding these events, (when-argument, maybe?), so if someone has either a solution to the number problem or a better way of FREDding it, then please share.
Thank you,
A Concerned FREDder
EDIT
Disclaimer: The reason I haven't used when-argument (if that's the way to go) is because I don't understand how it works. So if someone could explain, that would be awesome.
See latest post for current questions.