Directive-is-variable

From FreeSpace Wiki
Revision as of 16:53, 7 May 2011 by TopAce (talk | contribs) (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…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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
  is-destroyed-delay
   0
   Some target
  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.