YesNoOk
avatar

NumHelper (Triggers) (Read 1576 times)

Started by Just No Point, October 17, 2015, 11:46:29 pm
Share this topic:
NumHelper (Triggers)
#1  October 17, 2015, 11:46:29 pm
  • ******
    • www.justnopoint.com/
This trigger takes an ID number as an optional argument. If the ID number is omitted, then NumHelper returns the total number of helpers currently owned by the player. If the ID number is included, then NumHelper returns the total number of helpers with that ID number owned by the player. The ID number must be greater than 0. If the ID number is 0 or less, then all helpers are counted.

Format:
NumHelper
NumHelper(exprn)

Arguments:
exprn
Expression evaluating to an ID number (int).

Return type:
int

Error conditions:
Returns bottom if exprn evaluates to bottom.

Examples:

Code:
1. trigger1 = NumHelper < 2
  Triggers if the player now has less than 2 helpers.
2. trigger1 = NumHelper(1234) < 2
  Triggers if the player now has less than 2 helpers with ID 1234.