Author Topic: help :banghead:  (Read 1574 times)

0 Members and 1 Guest are viewing this topic.

Offline ShadowWolf_IH

  • A Real POF Guy
  • 211
    • CoW
 I am tired of using a half million sexp's for something as inane as % subsystems destroyed.  How would you guys do it?
You can't take the sky from me.  Can't take that from me.

Casualties of War

 

Offline Axem

  • 211
I can think of a few ways. :)

First, if we just want a real straight forward no variable way of doing it, we can do a when-argument using the number-of operator.



This will activate as soon as 4 selected turrets on the Fenris have been destroyed. You could turn that into a directive if you like.

Another, slightly more complex method to show the player the number of turrets remaining would go something like...

edit: D'oh, this should also repeat with the trigger set to the number of turrets. I also forgot the invalidate-argument here! There should be an invalidate-argument <argument> at the end!


Using the directive is variable sexp allows you to put your own number in the directive. So here is would read "Destroy Half Fenris' Turrets [8]". You could also tweak how the variable is calculated to just show how many left to destroy (start the var at 4 and have change that condition to = fenrisTurrets 0).

(More information about conditional arguments can be found here!)

« Last Edit: October 27, 2011, 06:47:57 pm by Axem »

 

Offline ShadowWolf_IH

  • A Real POF Guy
  • 211
    • CoW
I knew it would be a variable.  OK mark this on your calendar...it took ten years for SW to use a variable in fred.  God Fred is anal.   Flippin Rectal Examination Device.  Thanks Axem.
You can't take the sky from me.  Can't take that from me.

Casualties of War

  

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Wat? FRED is amazing! (Sometimes finicky.. sure..) FRED frees us from the confines of the same ol' same 'ol!
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.