P+ - Sonic - Action - 0x11c

Entry Script

  1. if ((InternalConstantInt(PreviousAction) Equal scalar(280)))
    1. BoolVariableSetFalse { variable: LongtermAccessBool (0x70) }
  2. BoolVariableSetTrue { variable: LongtermAccessBool (0x3a) }
  3. CreateInterrupt { interrupt_id: None, action: Fall, requirement: (AnimationEnd) }
  4. CreateInterrupt { interrupt_id: None, action: 0x11a, requirement: (not(BoolIsTrue RandomAccessBool(EnableLandingLag))) }
  5. PreviousInterruptAddRequirement(OnGround)
  6. CreateInterrupt { interrupt_id: None, action: LandingLight, requirement: (BoolIsTrue RandomAccessBool(EnableLandingLag)) }
  7. PreviousInterruptAddRequirement(OnGround)
  8. SetAirGround(0)
  9. Posture(3)
  10. Posture(4)
  11. UnknownEvent { namespace: 0x12, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: InternalConstant, data_type: Int, address: 24003 }), Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 2 })] }
  12. IntVariableIncrement { variable: RandomAccessInt(ThrowDataParam1) }
  13. CallEveryFrame { thread_id: 9, script: 0x1e9b0 }
  14. if (RollADie value(4))
    1. ChangeSubactionRestartFrame(SpecialNHit)
  15. else
    1. if (RollADie value(3))
      1. ChangeSubactionRestartFrame(SpecialNHit2)
    2. else
      1. if (RollADie value(2))
        1. ChangeSubactionRestartFrame(SpecialNHit3)
      2. else
        1. if (RollADie value(1))
          1. ChangeSubactionRestartFrame(SpecialNHit4)

Exit Script