P+ - Sonic - Action - 0x11b

Entry Script

  1. BoolVariableSetTrue { variable: LongtermAccessBool (0x3a) }
  2. CallEveryFrame { thread_id: 9, script: 0x2cee4 }
  3. if ((InternalConstantInt(PreviousAction) Equal scalar(279)))
    1. IfStatementOr ((InternalConstantInt(PreviousAction) Equal scalar(286)))
    2. CreateInterrupt { interrupt_id: None, action: Fall, requirement: (AnimationEnd) }
    3. ChangeSubactionRestartFrame(SpecialNCancel)
    4. SetAirGround(0)
  4. else
    1. if ((InternalConstantInt(PreviousAction) Equal scalar(289)))
      1. CreateInterrupt { interrupt_id: None, action: Fall, requirement: (AnimationEnd) }
      2. ChangeSubactionRestartFrame(SpecialSKickFall)
      3. SetAirGround(0)
    2. else
      1. if ((LongtermAccessInt (0x45) Equal scalar(1)))
        1. CreateInterrupt { interrupt_id: None, action: FallSpecial, requirement: (AnimationEnd) }
        2. ChangeSubactionRestartFrame(SpecialNCancelSpecialFall)
        3. SetAirGround(0)
      2. else
        1. CreateInterrupt { interrupt_id: None, action: Fall, requirement: (AnimationEnd) }
        2. ChangeSubactionRestartFrame(SpecialNCancel)
        3. SetAirGround(0)
  5. CreateInterrupt { interrupt_id: None, action: 0x11a, requirement: (OnGround) }
  6. PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) NotEqual scalar(286)))
  7. PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) NotEqual scalar(287)))
  8. PreviousInterruptAddRequirement((InternalConstantInt(PreviousAction) NotEqual scalar(289)))
  9. CreateInterrupt { interrupt_id: None, action: LandingLight, requirement: (OnGround) }

Exit Script