P+ - Ivysaur - Subroutine - 0x226ec

  1. FloatVariableAdd { variable: LongtermAccessFloat (0x1b), value: RandomAccessFloat (0x5) }
  2. Subroutine(0x206cc)
  3. 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: None, terminate_with_animation: true })
  4. if ((LongtermAccessInt(CostumeID) GreaterThanOrEqual scalar(30)))
    1. IfStatementAnd ((LongtermAccessInt(CostumeID) LessThanOrEqual scalar(39)))
    2. ExternalGraphicEffect(ExternalGraphicEffect { file: 32, graphic: 32, bone: 30, x_offset: 0.0, y_offset: 0.0, z_offset: 0.0, x_rotation: 90.0, y_rotation: 0.0, z_rotation: 0.0, scale: 0.75, randomize: None, terminate_with_animation: true })
  5. else
    1. ExternalGraphicEffect(ExternalGraphicEffect { file: 0, graphic: 90, bone: 30, x_offset: 0.0, y_offset: 0.0, z_offset: 0.0, x_rotation: 90.0, y_rotation: 0.0, z_rotation: 0.0, scale: 0.75, randomize: None, terminate_with_animation: true })
  6. if ((InternalConstantInt(Damage) GreaterThanOrEqual scalar(0)))
    1. if ((InternalConstantInt(Damage) LessThan RandomAccessFloat (0x5)))
      1. FloatVariableSet { variable: RandomAccessFloat (0x5), value: InternalConstantInt(Damage) }
    2. FloatVariableMultiply { variable: RandomAccessFloat (0x5), value: -1 }
    3. UnknownEvent { namespace: 0x1e, code: 0x3, unk1: 0x0, arguments: [Variable(Variable { memory_type: RandomAccess, data_type: Float, address: 5 })] }
    4. SoundEffect1(18)
    5. SoundEffect1(18)
  7. if ((LongtermAccessInt(CostumeID) GreaterThanOrEqual scalar(30)))
    1. IfStatementAnd ((LongtermAccessInt(CostumeID) LessThanOrEqual scalar(39)))
    2. FlashEffectOverlay { red: 147, green: 82, blue: 254, alpha: 135 }
    3. SyncWait(1.0)
    4. SetColorOfFlashEffectOverlay { transition_time: 20, red: 147, green: 82, blue: 254, alpha: 0 }
  8. else
    1. FlashEffectOverlay { red: 147, green: 254, blue: 82, alpha: 135 }
    2. SyncWait(1.0)
    3. SetColorOfFlashEffectOverlay { transition_time: 20, red: 147, green: 254, blue: 82, alpha: 0 }
  9. SyncWait(20.0)
  10. RemoveFlashEffect