Brawl - Squirtle - Subroutine - 0x19518
- loop Infinite times:
- if (BoolIsTrue LongtermAccessBool(HasCurry))
- if ((InternalConstantInt(CurrentSubaction) Equal scalar(380)))
- SetAnimationAndTimerFrame(0.0)
- else
- ChangeSubactionRestartFrame(GekikaraWait)
- SyncWait(1.0)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: true, ty: BoolIsTrue }, Variable(Variable { memory_type: LongtermAccess, data_type: Bool, address: 10 })] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
- else
- if ((LongtermAccessFloat (0x13) LessThanOrEqual LongtermAccessFloat (0x14)))
- ChangeSubactionRestartFrame(StaminaWait)
- SyncWait(1.0)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: true, ty: Comparison }, Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 19 }), Value(1), Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 20 })] }
- else
- if (HoldingItem)
- if ((InternalConstantInt (0x5222) Equal scalar(5)))
- ChangeSubactionRestartFrame(WaitItem)
- SyncWait(1.0)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: true, ty: Comparison }, Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 21026 }), Value(2), Scalar(5.0)] }
- else
- if ((InternalConstantInt(CurrentSubaction) Equal scalar(0)))
- SetAnimationAndTimerFrame(0.0)
- else
- ChangeSubactionRestartFrame(Wait1)
- SyncWait(1.0)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
- else
- Switch(1000, 0)
- Case(1)
- ChangeSubactionRestartFrame(Wait2)
- Case(2)
- ChangeSubactionRestartFrame(Wait3)
- Case(-1)
- SetAnimationAndTimerFrame(0.0)
- Case(5)
- ChangeSubactionRestartFrame(WaitItem)
- UnknownEvent { namespace: 0x0, code: 0x12, unk1: 0x0, arguments: [] }
- ChangeSubactionRestartFrame(Wait1)
- EndSwitch
- SyncWait(1.0)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
- LoopRest