P+ - Sonic - Action - 0x125
Entry Script
- CreateInterrupt { interrupt_id: Some(10000), action: SquatWait, requirement: (AnimationEnd) }
- CreateInterrupt { interrupt_id: Some(10002), action: Fall, requirement: (AnimationEnd) }
- IntVariableSet { variable: RandomAccessInt (0x0), value: 491 }
- IntVariableSet { variable: RandomAccessInt (0x1), value: 492 }
- loop Infinite times:
- if (OnGround)
- IntVariableSet { variable: LongtermAccessInt(JumpsUsed), value: 0 }
- SetAirGround(6)
- SetEdgeSlide(Unknown(2))
- if ((InternalConstantInt(CurrentSubaction) Equal RandomAccessInt (0x1)))
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 }), Bool(true)] }
- else
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 })] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
- EnableInterrupt(10000)
- DisableInterrupt(10002)
- else
- SetAirGround(66)
- SetEdgeSlide(Airbourne)
- if ((InternalConstantInt(CurrentSubaction) Equal RandomAccessInt (0x0)))
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 }), Bool(true)] }
- else
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 })] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
- DisableInterrupt(10000)
- EnableInterrupt(10002)
- LoopRest
Exit Script