P+ - Ivysaur - Action - 0x96 GrabItem
Entry Script (Common)
- SetAirGround(15)
- if (ItemOfTypeIsInGrabbingRange value(8192))
- if ((InternalConstantInt(XVelocity) GreaterThanOrEqual InternalConstantInt (0x408)))
- ChangeSubactionRestartFrame(LightWalkEat)
- else
- ChangeSubactionRestartFrame(LightEat)
- else
- if ((InternalConstantInt(XVelocity) GreaterThanOrEqual InternalConstantInt (0x408)))
- ChangeSubactionRestartFrame(LightWalkGet)
- else
- ChangeSubactionRestartFrame(LightGet)
- CreateInterrupt { interrupt_id: None, action: 0xad, requirement: (InAir) }
- PreviousInterruptAddRequirement((InternalConstantInt(HeldItem) Equal scalar(13)))
- CreateInterrupt { interrupt_id: None, action: Fall, requirement: (InAir) }
- PreviousInterruptAddRequirement(not((InternalConstantInt(HeldItem) Equal scalar(13))))
- CreateInterrupt { interrupt_id: None, action: 0xa4, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement((InternalConstantInt(HeldItem) Equal scalar(13)))
- PreviousInterruptAddRequirement(OnGround)
- CreateInterrupt { interrupt_id: None, action: Wait, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement(OnGround)
Exit Script (Common)