YesNoOk
avatar

MoveType(*,***) & P2MoveType (Triggers) (Read 11885 times)

Started by Odb718, September 14, 2015, 02:30:22 am
Share this topic:
MoveType(*,***) & P2MoveType (Triggers)
New #1  September 14, 2015, 02:30:22 am
  • *****
  • Shame on you!
    • USA
MoveType gives the player's move-type. Refer to the section on StateDef in the CNS documentation for more details on MoveType. Useful for "move interrupts" in the CMD file.
P2MoveType is the sameexcept that this returns the opponent's movetype.

Format:
1.) MoveType [oper] move_type
2.) P2MoveType [oper] move_type

Arguments:
    [oper]  =, != (other operators not valid)
    move_type (char)        A, I, H            Attack, Idle and GetHit move-types respectively.
Return type:
boolean int (1 or 0)
Error conditions:
none

Example:
Code:
trigger1 = movetype != H
  Triggers if the player is not currently in a gethit-type state.

Related Triggers:
StateType & P2StateType (Trigger)

Related SCTRL:
StateTypeSet (SCTRL)
vVv Ryuko718 Updated 10/31/22 vVv
Last Edit: November 25, 2015, 02:59:08 am by Odb718