P+ - Lucario - Action - 0x118

Entry Script

  1. if (ButtonPress value(0))
    1. IfStatementAnd ((LongtermAccessFloat (0x1b) GreaterThanOrEqual scalar(60)))
    2. IfStatementAnd (not(ButtonPress value(15)))
    3. Subroutine(0x24d08)
    4. SoundEffect1(2369)
    5. GenerateArticle { article_id: 0, subaction_only: true }
    6. UnknownEvent { namespace: 0x10, code: 0x7, unk1: 0x0, arguments: [Value(0), Value(1)] }
    7. CreateInterrupt { interrupt_id: None, action: 0x119, requirement: ((LongtermAccessInt(Temp2) GreaterThanOrEqual scalar(7))) }
    8. IntVariableSet { variable: LongtermAccessInt (0x45), value: 60 }
    9. IntVariableSet { variable: LongtermAccessInt (0x46), value: 60 }
    10. FloatVariableSubtract { variable: LongtermAccessFloat (0x1b), value: 60 }
    11. Subroutine(NONE Main 0x29b40)
    12. loop Infinite times:
      1. Subroutine(0x18fa8)
      2. if (OnGround)
        1. SetEdgeSlide(Unknown(2))
        2. SetAirGround(6)
        3. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
      3. else
        1. SetEdgeSlide(Airbourne)
        2. SetAirGround(10)
        3. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
      4. LoopRest
  2. else
    1. if ((InternalConstantInt(CurrentAction) Equal scalar(274)))
      1. GenerateArticle { article_id: 0, subaction_only: true }
      2. UnknownEvent { namespace: 0x10, code: 0x7, unk1: 0x0, arguments: [Value(0), Value(1)] }
    2. BoolVariableSetFalse { variable: LongtermAccessBool (0x3e) }
    3. IntVariableSet { variable: LongtermAccessInt (0x45), value: 466 }
    4. IntVariableSet { variable: LongtermAccessInt (0x46), value: 467 }
    5. Subroutine(0x1a950)
    6. CreateInterrupt { interrupt_id: None, action: 0x11e, requirement: (ShieldInputHeld) }
    7. CreateInterrupt { interrupt_id: None, action: 0x119, requirement: (ButtonPress value(1)) }
    8. loop Infinite times:
      1. if (OnGround)
        1. Subroutine(0x190c8)
        2. Subroutine(0x18fa8)
        3. Subroutine(0x1a9a8)
        4. SetAirGround(6)
        5. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
      2. else
        1. Subroutine(0x19110)
        2. Subroutine(0x18fe8)
        3. Subroutine(0x1a9f0)
        4. SetAirGround(10)
        5. UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
      3. LoopRest

Exit Script

  1. Goto(0x117 Exit 0x118f0)