P+ - Ivysaur - Subroutine - 0x27eb4

  1. if ((LongtermAccessInt (0x42) GreaterThan scalar(0)))
    1. IfStatementAnd ((InternalConstantInt(CurrentAction) NotEqual scalar(278)))
    2. FloatVariableSet { variable: LongtermAccessFloat (0x1e), value: 1 }
    3. if ((InternalConstantInt(Damage) GreaterThan scalar(0)))
      1. if ((InternalConstantInt(Damage) LessThan LongtermAccessFloat (0x1e)))
        1. FloatVariableSet { variable: LongtermAccessFloat (0x1e), value: InternalConstantInt(Damage) }
      2. FloatVariableMultiply { variable: LongtermAccessFloat (0x1e), value: -1 }
      3. UnknownEvent { namespace: 0x1e, code: 0x3, unk1: 0x0, arguments: [Variable(Variable { memory_type: LongtermAccess, data_type: Float, address: 30 })] }
      4. SoundEffect1(18)
    4. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 29, bone: 14, x_offset: 0.0, y_offset: 0.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: 0.0, scale: 1.0, randomize: Some(ExternalGraphicEffectRandomize { random_x_offset: 0.0, random_y_offset: 0.0, random_z_offset: 0.0, random_x_rotation: 0.0, random_y_rotation: 0.0, random_z_rotation: 0.0 }), terminate_with_animation: true })
    5. SyncWait(7.0)
    6. if ((LongtermAccessInt(CostumeID) GreaterThanOrEqual scalar(30)))
      1. IfStatementAnd ((LongtermAccessInt(CostumeID) LessThanOrEqual scalar(39)))
      2. ExternalGraphicEffect(ExternalGraphicEffect { file: 32, graphic: 32, bone: 0, x_offset: 0.0, y_offset: 4.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: -90.0, scale: 0.7, randomize: None, terminate_with_animation: false })
    7. else
      1. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 90, bone: 0, x_offset: 0.0, y_offset: 4.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: -90.0, scale: 0.7, randomize: None, terminate_with_animation: false })
    8. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 29, bone: 0, x_offset: 11.0, y_offset: 12.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: 0.0, scale: 1.0, randomize: Some(ExternalGraphicEffectRandomize { random_x_offset: 0.0, random_y_offset: 0.0, random_z_offset: 0.0, random_x_rotation: 0.0, random_y_rotation: 0.0, random_z_rotation: 0.0 }), terminate_with_animation: false })
    9. SyncWait(10.0)
    10. Subroutine(0x14590)
    11. if ((LongtermAccessInt(CostumeID) GreaterThanOrEqual scalar(30)))
      1. IfStatementAnd ((LongtermAccessInt(CostumeID) LessThanOrEqual scalar(39)))
      2. ExternalGraphicEffect(ExternalGraphicEffect { file: 32, graphic: 32, bone: 0, x_offset: 0.0, y_offset: 5.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: 0.0, scale: 0.4, randomize: None, terminate_with_animation: false })
    12. else
      1. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 90, bone: 0, x_offset: 0.0, y_offset: 5.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: 0.0, scale: 0.4, randomize: None, terminate_with_animation: false })
    13. SyncWait(12.0)
    14. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 29, bone: 0, x_offset: -7.0, y_offset: 9.0, z_offset: 0.0, x_rotation: 0.0, y_rotation: 0.0, z_rotation: 0.0, scale: 1.0, randomize: Some(ExternalGraphicEffectRandomize { random_x_offset: 0.0, random_y_offset: 0.0, random_z_offset: 0.0, random_x_rotation: 0.0, random_y_rotation: 0.0, random_z_rotation: 0.0 }), terminate_with_animation: false })
    15. SyncWait(6.0)
  2. SyncWait(1.0)
  3. Goto(0x27eb4)