PM3.02 - Kirby - Action - 0x144

Entry Script

  1. BoolVariableSetFalse { variable: RandomAccessBool(EnableActionTransition) }
  2. BoolVariableSetFalse { variable: RandomAccessBool (0x11) }
  3. BoolVariableSetFalse { variable: RandomAccessBool(SpecialsMovement) }
  4. IntVariableSet { variable: RandomAccessInt(ThrowDataParam1), value: 0 }
  5. CreateInterrupt { interrupt_id: Some(10147), action: Wait, requirement: (AnimationEnd) }
  6. DisableInterrupt(10147)
  7. CreateInterrupt { interrupt_id: Some(10148), action: Fall, requirement: (AnimationEnd) }
  8. DisableInterrupt(10148)
  9. CallEveryFrame { thread_id: 9, script: 0x37bc4 }
  10. loop Infinite times:
    1. if (OnGround)
      1. SetEdgeSlide(Unknown(2))
      2. UnknownEvent { namespace: 0x0, code: 0x10, unk1: 0x0, arguments: [Value(10000), Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 2 })] }
      3. Case(0)
      4. SetAirGround(15)
      5. if (BoolIsTrue RandomAccessBool(EnableActionTransition))
        1. ChangeSubaction(SpecialNStart_5)
      6. else
        1. ChangeSubactionRestartFrame(SpecialNStart_5)
        2. BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
      7. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
      8. Case(1)
      9. SetAirGround(6)
      10. if (BoolIsTrue RandomAccessBool (0x11))
        1. ChangeSubaction(SpecialN_3)
      11. else
        1. ChangeSubactionRestartFrame(SpecialN_3)
        2. BoolVariableSetTrue { variable: RandomAccessBool (0x11) }
      12. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonNotPressed }, Value(1)] }
      13. UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 }), Value(4), Scalar(1.0)] }
      14. UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 }), Value(4), Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 24036 })] }
      15. Case(2)
      16. SetAirGround(6)
      17. if (BoolIsTrue RandomAccessBool(SpecialsMovement))
        1. ChangeSubaction(SpecialNEnd_4)
      18. else
        1. ChangeSubactionRestartFrame(SpecialNEnd_4)
        2. BoolVariableSetTrue { variable: RandomAccessBool(SpecialsMovement) }
      19. EnableInterrupt(10147)
      20. DisableInterrupt(10148)
      21. EndSwitch
      22. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
    2. else
      1. SetAirGround(10)
      2. SetEdgeSlide(Airbourne)
      3. UnknownEvent { namespace: 0x0, code: 0x10, unk1: 0x0, arguments: [Value(10000), Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 2 })] }
      4. Case(0)
      5. if (BoolIsTrue RandomAccessBool(EnableActionTransition))
        1. ChangeSubaction(SpecialAirNStart_5)
      6. else
        1. ChangeSubactionRestartFrame(SpecialAirNStart_5)
        2. BoolVariableSetTrue { variable: RandomAccessBool(EnableActionTransition) }
      7. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: AnimationEnd }] }
      8. Case(1)
      9. if (BoolIsTrue RandomAccessBool (0x11))
        1. ChangeSubaction(SpecialAirN_3)
      10. else
        1. ChangeSubactionRestartFrame(SpecialAirN_3)
        2. BoolVariableSetTrue { variable: RandomAccessBool (0x11) }
      11. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: ButtonNotPressed }, Value(1)] }
      12. UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 }), Value(4), Scalar(1.0)] }
      13. UnknownEvent { namespace: 0x4, code: 0x3, unk1: 0x0, arguments: [Requirement { flip: false, ty: Comparison }, Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 }), Value(4), Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 24036 })] }
      14. Case(2)
      15. if (BoolIsTrue RandomAccessBool(SpecialsMovement))
        1. ChangeSubaction(SpecialAirNEnd_4)
      16. else
        1. ChangeSubactionRestartFrame(SpecialAirNEnd_4)
        2. BoolVariableSetTrue { variable: RandomAccessBool(SpecialsMovement) }
      17. DisableInterrupt(10147)
      18. EnableInterrupt(10148)
      19. EndSwitch
      20. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
    3. LoopRest
    4. UnknownEvent { namespace: 0x0, code: 0x10, unk1: 0x0, arguments: [Value(10000), Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 2 })] }
    5. Case(0)
    6. if (AnimationEnd)
      1. IntVariableSet { variable: RandomAccessInt(ThrowDataParam1), value: 1 }
    7. Case(1)
    8. if (ButtonNotPressed value(1))
      1. IfStatementAnd ((RandomAccessInt (0x1) GreaterThanOrEqual scalar(1)))
      2. IfStatementAnd ((RandomAccessInt (0x0) GreaterThanOrEqual InternalConstantInt (0x5de4)))
      3. IntVariableSet { variable: RandomAccessInt(ThrowDataParam1), value: 2 }
    9. Case(2)
    10. EndSwitch

Exit Script