YesNoOk
avatar

HitCount (Triggers) (Read 3278 times)

Started by JustNoPoint, October 02, 2015, 08:41:45 pm
Share this topic:
HitCount (Triggers)
#1  October 02, 2015, 08:41:45 pm
  • ******
    • www.justnopoint.com/
Returns the number times the player's current attack move has hit one or more opponents. This value is valid only for a single state; after any state change, it resets to 0. To prevent it from resetting to 0, set hitcountpersist in the StateDef (see cns documentation for details). The HitCount and UniqHitCount triggers differ only when the player is hitting more than one opponent. In the case where the player is hitting two opponents with the same attack, HitCount will increase by 1 for every hit, while UniqHitCount increases by 2.

Format:
HitCount
Arguments:
none
Return type:
int
Error conditions:
none
Example:

Code:
trigger1 = HitCount > 8
  Triggers when more than 8 hits have been dealt to the
  opponent since the start of the player's attack move.