useChipOnCell
useChipOnCell
> Functions
Uses the chip chip on the cell cell.
Parameters
- chip: The chip to use.
- cell: The target cell.
Return
- result: A value strictly greater than 0 if the attack was launched. The return values of useChipOnCell are:
- USE_CRITICAL, on a critical hit
- USE_SUCCESS, on success
- USE_FAILED, if the chip is a summon and your entity can no longer summon (sterile state)
- USE_INVALID_TARGET, if the target does not exist
- USE_NOT_ENOUGH_TP, if your entity does not have enough TP
- USE_INVALID_COOLDOWN, if the chip cannot be used yet
- USE_INVALID_POSITION, if the range is wrong or the line of sight is not clear
- USE_MAX_USES, if the chip has already been used too many times this turn
Since USE_SUCCESS and USE_CRITICAL are 1 and 2 respectively, and the other values are 0 or negative, you can tell whether the chip was used successfully with this test:
See also