P+ - Wolf - Common Subroutine 0x1942c

  1. if ((InternalConstantInt(ControlStickXAxisAbsolute) GreaterThanOrEqual InternalConstantInt (0xc32)))
    1. IfStatementAnd ((InternalConstantInt (0x520b) LessThan InternalConstantInt (0x5a54)))
    2. if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual scalar(0)))
      1. IntVariableSet { variable: RandomAccessInt (0x0), value: 259 }
      2. IntVariableSet { variable: RandomAccessInt (0x1), value: 268 }
    3. else
      1. IntVariableSet { variable: RandomAccessInt (0x0), value: 260 }
      2. IntVariableSet { variable: RandomAccessInt (0x1), value: 269 }
      3. FloatVariableSet { variable: RandomAccessFloat(EnableTurnWhenBelowZero), value: InternalConstantInt(CharacterDirectionOpposite) }
    4. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
    5. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
  2. else
    1. if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual InternalConstantInt (0xc56)))
      1. IfStatementAnd ((InternalConstantInt(EffectOfAttack) LessThan InternalConstantInt (0xc57)))
      2. IntVariableSet { variable: RandomAccessInt (0x0), value: 261 }
      3. IntVariableSet { variable: RandomAccessInt (0x1), value: 270 }
      4. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
      5. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
    2. else
      1. if ((InternalConstantInt(ControlStickYAxis) LessThanOrEqual InternalConstantInt (0xc58)))
        1. IfStatementAnd ((InternalConstantInt(EffectOfAttack) LessThan InternalConstantInt (0xc59)))
        2. IntVariableSet { variable: RandomAccessInt (0x0), value: 262 }
        3. IntVariableSet { variable: RandomAccessInt (0x1), value: 271 }
        4. BoolVariableSetTrue { variable: LongtermAccessBool (0x2a) }
        5. UnknownEvent { namespace: 0xc, code: 0x20, unk1: 0x0, arguments: [Value(1), Value(25)] }
      2. else
        1. if ((InternalConstantInt(ControlStickYAxis) GreaterThanOrEqual InternalConstantInt (0xc52)))
          1. IntVariableSet { variable: RandomAccessInt (0x0), value: 257 }
          2. IntVariableSet { variable: RandomAccessInt (0x1), value: 266 }
        2. else
          1. if ((InternalConstantInt(ControlStickYAxis) LessThanOrEqual InternalConstantInt (0xc53)))
            1. IntVariableSet { variable: RandomAccessInt (0x0), value: 258 }
            2. IntVariableSet { variable: RandomAccessInt (0x1), value: 267 }
          2. else
            1. if ((InternalConstantInt(ControlStickXAxisAbsolute) LessThanOrEqual InternalConstantInt (0xc2d)))
              1. IfStatementAnd (ButtonHeld value(3))
              2. IfStatementAnd (not(HoldingItemOfType value(8)))
              3. IntVariableSet { variable: RandomAccessInt (0x0), value: 254 }
              4. IntVariableSet { variable: RandomAccessInt (0x1), value: 254 }
            2. else
              1. if ((InternalConstantInt(ControlStickXAxisRelative) GreaterThanOrEqual scalar(0)))
                1. IntVariableSet { variable: RandomAccessInt (0x0), value: 255 }
                2. IntVariableSet { variable: RandomAccessInt (0x1), value: 264 }
              2. else
                1. IntVariableSet { variable: RandomAccessInt (0x0), value: 256 }
                2. IntVariableSet { variable: RandomAccessInt (0x1), value: 265 }
                3. FloatVariableSet { variable: RandomAccessFloat(EnableTurnWhenBelowZero), value: InternalConstantInt(CharacterDirectionOpposite) }