NumTarget

From M.U.G.E.N Wiki

Revision as of 11:35, 5 October 2009 by Minion (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Trigger: NumTarget

This trigger takes an ID number as an optional argument. If the ID number is omitted, NumTarget returns the current number of targets for the player. If the ID number is included, then NumTarget returns the number of targets for the player which have that target ID number. The ID number must be greater than -1. An ID number of -1 or less will give the same behavior as if the ID number is omitted.

Format:

  1. NumTarget
  2. NumTarget(exprn)

Arguments:
exprn
Expression evaluating to an ID number (int).
Return type:
int
Error conditions:
Returns SFalse if exprn evaluates to SFalse.

Examples:

1. trigger1 = NumExplod >= 4
  Triggers if the player currently owns 4 or more explods.
2. trigger1 = NumExplod(1234) >= 4
  Triggers if the player currently owns 4 or more explods with ID
  1234.