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ā€¦")
 
(note regarding directive-value)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
==Notes==
 
==Notes==
 +
*'''This SEXP has been replaced by [[directive-value]].'''
 
*This SEXP goes to the conditions part of the event tree. It can be found in "Status."
 
*This SEXP goes to the conditions part of the event tree. It can be found in "Status."
 
*Use the SEXP like this:
 
*Use the SEXP like this:
 
  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

Latest revision as of 08:05, 24 March 2021

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 has been replaced by directive-value.
  • 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.