LXP2.1 - Ganon-Mage - Action - 0x120
Entry Script
- BoolVariableSetFalse { variable: LongtermAccessBool (0x78) }
- FloatVariableSet { variable: LongtermAccessFloat (0x49), value: 0 }
- IntVariableSet { variable: LongtermAccessInt(JumpsUsed), value: 1 }
- FloatVariableSet { variable: LongtermAccessFloat (0x51), value: 0 }
- IntVariableSet { variable: LongtermAccessInt (0x60), value: 19 }
- 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))) }
- if ((InternalConstantInt(PreviousAction) Equal scalar(12)))
- IfStatementOr ((InternalConstantInt(PreviousAction) Equal scalar(11)))
- IfStatementOr ((InternalConstantInt(PreviousAction) Equal scalar(122)))
- else
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 0 }
- BoolVariableSetTrue { variable: LongtermAccessInt (0x61) }
- if ((InternalConstantInt(PreviousAction) Equal scalar(286)))
- IfStatementOr (BoolIsTrue RandomAccessInt(ThrowDataParam2))
- else
- IntVariableSet { variable: LongtermAccessInt (0x5c), value: 90 }
- CallEveryFrame { thread_id: 9, script: NONE Main 0x4a9c0 }
- CreateInterrupt { interrupt_id: Some(10028), action: LandingHeavy, requirement: (OnGround) }
- PreviousInterruptAddRequirement(BoolIsTrue RandomAccessBool(EnableLandingLag))
- EnableInterruptGroup(AirLanding)
- CreateInterrupt { interrupt_id: None, action: SpecialHi, requirement: ((LongtermAccessFloat (0x73) Equal scalar(4))) }
- CreateInterrupt { interrupt_id: None, action: SpecialLw, requirement: ((LongtermAccessFloat (0x73) Equal scalar(5))) }
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonNotPressed value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) NotEqual scalar(286)))
- PreviousInterruptAddRequirement(not(BoolIsTrue RandomAccessInt(ThrowDataParam2)))
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonNotPressed value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement(not(BoolIsTrue RandomAccessInt(ThrowDataParam2)))
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonRelease value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) Equal scalar(286)))
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonPress value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) Equal scalar(286)))
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonRelease value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement(BoolIsTrue RandomAccessInt(ThrowDataParam2))
- CreateInterrupt { interrupt_id: Some(10148), action: 0x11a, requirement: (ButtonPress value(2)) }
- PreviousInterruptAddRequirement((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(0.6625)))
- PreviousInterruptAddRequirement(BoolIsTrue RandomAccessInt(ThrowDataParam2))
- CreateInterrupt { interrupt_id: Some(10149), action: 0x11a, requirement: ((LongtermAccessInt (0x5c) LessThanOrEqual scalar(0))) }
- DisableMovement(DisableVertical)
- SetAirGround(10)
- loop Infinite times:
- if (ButtonPress value(0))
- IfStatementAnd (not(Unknown(54) value(24)))
- IntVariableSet { variable: LongtermAccessInt(JumpsUsed), value: 2 }
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 2 }
- if ((InternalConstantInt(ControlStickXAxisAbsolute) LessThan scalar(0.25)))
- IfStatementAnd ((InternalConstantInt(ControlStickYAxisAbsolute) LessThan scalar(0.25)))
- 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_1)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(16)] }
- else
- if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual scalar(0)))
- ChangeSubactionRestartFrame(AttackAirHi_1)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(17)] }
- else
- ChangeSubactionRestartFrame(AttackAirLw_1)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(18)] }
- DisableInterruptGroup(AirSpecial)
- DisableInterruptGroup(AirAttack)
- DisableInterruptGroup(AirTreadjump)
- DisableInterrupt(10148)
- DisableInterrupt(10149)
- EnableInterrupt(10028)
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonPress }, Value(0)] }
- UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 115 }), Value(2), Scalar(3.0)] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonPress }, Value(1)] }
- UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 115 }), Value(2), Scalar(3.0)] }
- UnknownEvent { namespace: 0x4, code: 0x1, unk1: 0x0, arguments: [Value(22), Requirement { flip: false, ty: AnimationEnd }] }
- else
- if (ButtonPress value(1))
- IfStatementAnd (not(Unknown(54) value(24)))
- IntVariableSet { variable: LongtermAccessInt(JumpsUsed), value: 2 }
- if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual scalar(0.6)))
- IfStatementAnd ((InternalConstantInt(ControlStickYAxisAbsolute) LessThan scalar(0.55)))
- DisableInterruptGroup(AirSpecial)
- ChangeSubactionRestartFrame(SpecialAirS)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(14)] }
- else
- if ((InternalConstantInt(ControlStickXAxisRelative) LessThanOrEqual scalar(-0.6)))
- IfStatementAnd ((InternalConstantInt(ControlStickYAxisAbsolute) LessThan scalar(0.55)))
- DisableInterruptGroup(AirSpecial)
- UnknownEvent { namespace: 0x20, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 43029 }), Bool(false)] }
- ReverseDirection
- ChangeSubactionRestartFrame(SpecialAirS)
- UnknownEvent { namespace: 0xc, code: 0x1c, unk1: 0x0, arguments: [Value(2), Value(14)] }
- else
- if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual scalar(0.55)))
- if (not(BoolIsTrue LongtermAccessInt (0x75)))
- IntVariableSet { variable: LongtermAccessInt (0x5c), value: 0 }
- BoolVariableSetFalse { variable: LongtermAccessInt (0x61) }
- UnknownEvent { namespace: 0x11, code: 0x15, unk1: 0x0, arguments: [Value(118), Bool(false), Bool(true)] }
- EnableInterruptGroup(AirSpecial)
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 4 }
- else
- if ((InternalConstantInt(ControlStickYAxis) LessThanOrEqual scalar(-0.55)))
- IntVariableSet { variable: LongtermAccessInt (0x5c), value: 0 }
- BoolVariableSetFalse { variable: LongtermAccessInt (0x61) }
- UnknownEvent { namespace: 0x11, code: 0x15, unk1: 0x0, arguments: [Value(118), Bool(false), Bool(true)] }
- EnableInterruptGroup(AirSpecial)
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 5 }
- else
- IntVariableSet { variable: LongtermAccessInt (0x5c), value: 0 }
- BoolVariableSetFalse { variable: LongtermAccessInt (0x61) }
- UnknownEvent { namespace: 0x11, code: 0x15, unk1: 0x0, arguments: [Value(118), Bool(false), Bool(true)] }
- EnableInterruptGroup(AirSpecial)
- CreateInterrupt { interrupt_id: None, action: SpecialN, requirement: (CharacterExists) }
- DisableInterruptGroup(AirSpecial)
- DisableInterruptGroup(AirAttack)
- DisableInterruptGroup(AirTreadjump)
- 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))
- DisableInterruptGroup(AirSpecial)
- DisableInterruptGroup(AirAttack)
- DisableInterruptGroup(AirTreadjump)
- if ((LongtermAccessFloat (0x73) Equal scalar(1)))
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 2 }
- ChangeSubactionRestartFrame(JumpAerialFloat)
- else
- if ((LongtermAccessFloat (0x73) Equal scalar(0)))
- IfStatementAnd ((InternalConstantInt(PreviousAction) Equal scalar(51)))
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 2 }
- else
- ChangeSubactionRestartFrame(SpecialLwFloat)
- 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)] }
- if (BoolIsTrue LongtermAccessInt (0x75))
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonPress }, Value(1)] }
- UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: true, ty: Comparison }, Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 1018 }), Value(4), Scalar(0.55)] }
- else
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonPress }, Value(1)] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
- UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 115 }), Value(2), Scalar(2.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
- if ((LongtermAccessFloat (0x73) Equal scalar(3)))
- FloatVariableSet { variable: LongtermAccessFloat (0x73), value: 2 }
Exit Script
- RemoveFlashEffect