PM3.6 - Mewtwo - Action - 0x120
Entry Script
- IntVariableSet { variable: LongtermAccessInt (0x60), value: 19 }
- SoundEffect1(40)
- ResetVerticalVelocityAndAcceleration(true)
- ResetVerticalVelocityAndAcceleration(false)
- if ((InternalConstantInt(PreviousAction) Equal scalar(11)))
- FloatVariableSet { variable: RandomAccessFloat (0xa), value: 0.35 }
- else
- FloatVariableSet { variable: RandomAccessFloat (0xa), value: 0 }
- FloatVariableSet { variable: LongtermAccessFloat (0x46), value: InternalConstantInt(HorizontalCharacterVelocity) }
- if ((LongtermAccessFloat (0x46) GreaterThanOrEqual scalar(1)))
- FloatVariableSet { variable: LongtermAccessFloat (0x46), value: 1 }
- if ((LongtermAccessFloat (0x46) LessThanOrEqual scalar(-1)))
- FloatVariableSet { variable: LongtermAccessFloat (0x46), value: -1 }
- SetVelocity { x_vel: 0.0, y_vel: 0.0 }
- AddVelocity { x_vel: Variable(LongtermAccessFloat(Address(70))), y_vel: Variable(RandomAccessFloat(Address(10))) }
- BoolVariableSetTrue { variable: LongtermAccessInt (0x73) }
- BoolVariableSetTrue { variable: LongtermAccessInt (0x61) }
- IntVariableSet { variable: RandomAccessInt(ThrowDataParam1), value: 60 }
- CallEveryFrame { thread_id: 9, script: 0x284a4 }
- CreateInterrupt { interrupt_id: Some(10028), action: LandingHeavy, requirement: (OnGround) }
- PreviousInterruptAddRequirement(BoolIsTrue RandomAccessBool(EnableLandingLag))
- EnableInterruptGroup(AirLanding)
- EnableInterruptGroup(AirSpecial)
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11e, requirement: (ButtonNotPressed value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual InternalConstantInt (0xc42)))
- CreateInterrupt { interrupt_id: Some(10149), action: 0x11e, requirement: ((RandomAccessInt(ThrowDataParam1) LessThanOrEqual scalar(0))) }
- CreateInterrupt { interrupt_id: Some(10146), action: ThrowItem, requirement: (ButtonPress value(1)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxisReverse) GreaterThanOrEqual InternalConstantInt (0xc72)))
- PreviousInterruptAddRequirement((InternalConstantInt(HeldItem) Equal scalar(86)))
- DisableMovement(DisableVertical)
- SetAirGround(10)
- loop Infinite times:
- if (ButtonPress value(0))
- IfStatementAnd (not(Unknown(54) value(24)))
- IntVariableSet { variable: LongtermAccessInt(JumpsUsed), value: 2 }
- if ((InternalConstantInt(ControlStickXAxisAbsolute) LessThan InternalConstantInt (0xc5c)))
- IfStatementAnd ((InternalConstantInt(ControlStickYAxisAbsolute) LessThan InternalConstantInt (0xc5d)))
- ChangeSubactionRestartFrame(AttackAirN)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(14)] }
- else
- if (StickDirectionPressed)
- if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual scalar(0)))
- ChangeSubactionRestartFrame(AttackAirF)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(15)] }
- else
- ChangeSubactionRestartFrame(AttackAirB)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(16)] }
- else
- if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual scalar(0)))
- ChangeSubactionRestartFrame(AttackAirHi)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(17)] }
- else
- ChangeSubactionRestartFrame(AttackAirLw)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(18)] }
- DisableInterruptGroup(AirSpecial)
- DisableInterrupt(10146)
- DisableInterrupt(10148)
- DisableInterrupt(10149)
- EnableInterrupt(10028)
- UnknownEvent { namespace: 0x4, code: 0x1, unk1: 0x0, arguments: [Value(22), Requirement { flip: false, ty: AnimationEnd }] }
- else
- if (BoolIsTrue LongtermAccessInt (0x61))
- EnableInterruptGroup(AirSpecial)
- EnableInterrupt(10146)
- ChangeSubactionRestartFrame(Fuwafuwa)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(0), Value(0)] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonPress }, Value(0)] }
- EnableInterrupt(10148)
- EnableInterrupt(10149)
- DisableInterrupt(10028)
- else
- DisableMovement2(DisableVertical)
- CreateInterrupt { interrupt_id: None, action: FallSpecial, requirement: (InAir) }
- CreateInterrupt { interrupt_id: None, action: LandingHeavy, requirement: (OnGround) }
- LoopRest
Exit Script