Difference between revisions of "Directive-is-variable"

From FreeSpace Wiki
Jump to: navigation, search
(Created page with " directive-is-variable Causes the variable to appear in the directive count Always returns true. Takes 1 or more arguments... 1: Variable name 2: (Optional) Reset the d…")
 
m (Notes: better example)
Line 11: Line 11:
 
  when
 
  when
 
   and
 
   and
   is-destroyed-delay
+
   destroyed-or-departed-delay
 
     0
 
     0
     Some target
+
     List of targets
 
   directive-is-variable
 
   directive-is-variable
 
     @Variable name
 
     @Variable name

Revision as of 16:53, 7 May 2011

directive-is-variable
	Causes the variable to appear in the directive count
	Always returns true. Takes 1 or more arguments...

	1:	Variable name
	2:	(Optional) Reset the directive count set by any earlier SEXPs in the event.

Notes

  • This SEXP goes to the conditions part of the event tree. It can be found in "Status."
  • Use the SEXP like this:
when
 and
  destroyed-or-departed-delay
   0
   List of targets
  directive-is-variable
   @Variable name
 (rest of the event tree)
  • You needn't use a repeat/trigger count for the directive to update.
  • If the variable's value is 0, the number won't be displayed (like before).
  • And don't forget about the directive text.