PM3.02 - Mewtwo - Action - 0x120
Entry Script
- IntVariableSet { variable: LongtermAccessInt (0x60), value: 19 }
- SoundEffect1(40)
- ResetVerticalVelocityAndAcceleration(true)
- ResetVerticalVelocityAndAcceleration(false)
- FloatVariableSet { variable: LongtermAccessFloat (0x46), value: InternalConstantInt(HorizontalCharacterVelocity) }
- SetVelocity { x_vel: 0.0, y_vel: 0.35 }
- AddVelocity { x_vel: Variable(LongtermAccessFloat(Address(70))), y_vel: Constant(0.0) }
- if ((InternalConstantInt(HorizontalCharacterVelocity) GreaterThanOrEqual scalar(0.6)))
- SetVelocity { x_vel: 0.6, y_vel: 0.35 }
- if ((InternalConstantInt(HorizontalCharacterVelocity) LessThanOrEqual scalar(-0.6)))
- SetVelocity { x_vel: -0.6, y_vel: 0.35 }
- 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