PM3.02 - Snake - Action - 0x112 SpecialN
Entry Script
- if (HoldingItem)
- ItemDrop
- if (ArticleExists value(13))
- CreateInterrupt { interrupt_id: None, action: 0x12d, requirement: (ButtonTap) }
- Return
- FloatVariableSet { variable: RandomAccessFloat (0x8), value: -1 }
- CreateInterrupt { interrupt_id: None, action: 0x12d, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement(BoolIsTrue RandomAccessBool(EnableActionTransition))
- CreateInterrupt { interrupt_id: None, action: 0x122, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement(OnGround)
- CreateInterrupt { interrupt_id: None, action: 0x12b, requirement: (AnimationEnd) }
- PreviousInterruptAddRequirement(InAir)
- CallEveryFrame { thread_id: 9, script: 0x1b1b4 }
- IntVariableSet { variable: RandomAccessInt (0x0), value: 477 }
- IntVariableSet { variable: RandomAccessInt (0x1), value: 483 }
- loop Infinite times:
- if (OnGround)
- Subroutine(0x19058)
- if ((InternalConstantInt(CurrentSubaction) Equal RandomAccessInt (0x1)))
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 }), Bool(true)] }
- UnknownEvent { namespace: 0x10, code: 0x4, unk1: 0x0, arguments: [Value(12), Value(0), Bool(true)] }
- else
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 0 })] }
- UnknownEvent { namespace: 0x10, code: 0x4, unk1: 0x0, arguments: [Value(12), Value(0)] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: InAir }] }
- EnableInterrupt(10000)
- DisableInterrupt(10002)
- else
- Subroutine(0x190b0)
- if ((InternalConstantInt(CurrentSubaction) Equal RandomAccessInt (0x0)))
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 }), Bool(true)] }
- UnknownEvent { namespace: 0x10, code: 0x4, unk1: 0x0, arguments: [Value(12), Value(1), Bool(true)] }
- else
- UnknownEvent { namespace: 0x4, code: 0x0, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Int, address: 1 })] }
- UnknownEvent { namespace: 0x10, code: 0x4, unk1: 0x0, arguments: [Value(12), Value(1)] }
- UnknownEvent { namespace: 0x4, code: 0x2, unk1: 0x0, arguments: [Requirement { flip: false, ty: OnGround }] }
- DisableInterrupt(10000)
- EnableInterrupt(10002)
- LoopRest
Exit Script
- if ((InternalConstantInt(CurrentAction) Equal scalar(301)))
- FloatVariableSet { variable: RandomAccessFloat (0x8), value: InternalConstantInt(ControlStickXAxisRelative) }
- ArticleRemove(12)
- Subroutine(0x1b0f4)