P+ - Mario - Action - 0x96 GrabItem

Entry Script (Common)

  1. SetAirGround(15)
  2. if (ItemOfTypeIsInGrabbingRange value(8192))
    1. if ((InternalConstantInt(XVelocity) GreaterThanOrEqual InternalConstantInt (0x408)))
      1. ChangeSubactionRestartFrame(LightWalkEat)
    2. else
      1. ChangeSubactionRestartFrame(LightEat)
  3. else
    1. if ((InternalConstantInt(XVelocity) GreaterThanOrEqual InternalConstantInt (0x408)))
      1. ChangeSubactionRestartFrame(LightWalkGet)
    2. else
      1. ChangeSubactionRestartFrame(LightGet)
  4. CreateInterrupt { interrupt_id: None, action: 0xad, requirement: (InAir) }
  5. PreviousInterruptAddRequirement((InternalConstantInt(HeldItem) Equal scalar(13)))
  6. CreateInterrupt { interrupt_id: None, action: Fall, requirement: (InAir) }
  7. PreviousInterruptAddRequirement(not((InternalConstantInt(HeldItem) Equal scalar(13))))
  8. CreateInterrupt { interrupt_id: None, action: 0xa4, requirement: (AnimationEnd) }
  9. PreviousInterruptAddRequirement((InternalConstantInt(HeldItem) Equal scalar(13)))
  10. PreviousInterruptAddRequirement(OnGround)
  11. CreateInterrupt { interrupt_id: None, action: Wait, requirement: (AnimationEnd) }
  12. PreviousInterruptAddRequirement(OnGround)

Exit Script (Common)