BACKUP ~a_portraits/backup~
AUTHOR ~Cutter ( and Lady of payne)~ 

VERSION ~v1~ 


README ~a_portraits/readme-a_portraits.html~ 

/* Make portraits available for use by PC */
BEGIN ~Make Portraits available for use by the PC~
  MKDIR ~portraits~
  COPY ~a_portraits/bmp/_charname/humans_halfelves~ ~portraits~
  COPY ~a_portraits/bmp/_charname/elves_halfelves~ ~portraits~
  COPY ~a_portraits/bmp/ajantis~ ~portraits~
  COPY ~a_portraits/bmp/anomen~ ~portraits~
  COPY ~a_portraits/bmp/branwen~ ~portraits~
  COPY ~a_portraits/bmp/edwin~ ~portraits~ 
  COPY ~a_portraits/bmp/eldoth~ ~portraits~ 
  COPY ~a_portraits/bmp/garrick~ ~portraits~  
  COPY ~a_portraits/bmp/imoen~ ~portraits~ 
  COPY ~a_portraits/bmp/jaheira~ ~portraits~ 
  COPY ~a_portraits/bmp/jan~ ~portraits~ 
  COPY ~a_portraits/bmp/kagain~ ~portraits~ 
  COPY ~a_portraits/bmp/keldorn~ ~portraits~ 
  COPY ~a_portraits/bmp/kivan~ ~portraits~ 
  COPY ~a_portraits/bmp/korgan~ ~portraits~ 
  COPY ~a_portraits/bmp/mazzy~ ~portraits~ 
  COPY ~a_portraits/bmp/montaron~ ~portraits~ 
  COPY ~a_portraits/bmp/nalia~ ~portraits~ 
  COPY ~a_portraits/bmp/quayle~ ~portraits~ 
  COPY ~a_portraits/bmp/safana~ ~portraits~ 
  COPY ~a_portraits/bmp/sarevok~ ~portraits~ 
  COPY ~a_portraits/bmp/valygar~ ~portraits~ 
  COPY ~a_portraits/bmp/viconia~ ~portraits~ 
  COPY ~a_portraits/bmp/xzar~ ~portraits~ 
  COPY ~a_portraits/bmp/yeslick~ ~portraits~ 
  COPY ~a_portraits/bmp/yoshimo~ ~portraits~ 
  
BEGIN ~Preserve BioWare portraits as PC portraits~
PRINT ~The name of the portrait will change. Please see the readme for the naming convention.~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY_EXISTING ~_jantisl.bmp~ ~portraits/NAJAL.bmp~
    COPY_EXISTING ~_jantiss.bmp~ ~portraits/NAJAS.bmp~
    COPY_EXISTING ~_ranwel.bmp~ ~portraits/NBRANL.bmp~
    COPY_EXISTING ~_ranwes.bmp~ ~portraits/NBRANS.bmp~
    COPY_EXISTING ~_dwinl.bmp~ ~portraits/NEDL.bmp~
    COPY_EXISTING ~_dwins.bmp~ ~portraits/NEDS.bmp~
    COPY_EXISTING ~_ldothl.bmp~ ~portraits/NELDL.bmp~
    COPY_EXISTING ~_ldoths.bmp~ ~portraits/NELDS.bmp~
    COPY_EXISTING ~_arrickl.bmp~ ~portraits/NGARL.bmp~
    COPY_EXISTING ~_arricks.bmp~ ~portraits/NGARS.bmp~
    COPY_EXISTING ~_moenl.bmp~ ~portraits/NIMWL.bmp~
    COPY_EXISTING ~_moens.bmp~ ~portraits/NIMWS.bmp~
    COPY_EXISTING ~_aheiral.bmp~ ~portraits/NJAHL.bmp~
    COPY_EXISTING ~_aheiras.bmp~ ~portraits/NJAHS.bmp~
    COPY_EXISTING ~_againl.bmp~ ~portraits/NKAGL.bmp~
    COPY_EXISTING ~_agains.bmp~ ~portraits/NKAGS.bmp~
    COPY_EXISTING ~_ivanl.bmp~ ~portraits/NKIVL.bmp~
    COPY_EXISTING ~_ivans.bmp~ ~portraits/NKIVS.bmp~
    COPY_EXISTING ~_ontarl.bmp~ ~portraits/NMONL.bmp~
    COPY_EXISTING ~_ontars.bmp~ ~portraits/NMONS.bmp~
    COPY_EXISTING ~_uaylel.bmp~ ~portraits/NQUAL.bmp~
    COPY_EXISTING ~_uayles.bmp~ ~portraits/NQUAS.bmp~
    COPY_EXISTING ~_afanal.bmp~ ~portraits/NSAFL.bmp~
    COPY_EXISTING ~_afanas.bmp~ ~portraits/NSAFS.bmp~
    COPY_EXISTING ~_iconial.bmp~ ~portraits/NVICL.bmp~
    COPY_EXISTING ~_iconias.bmp~ ~portraits/NVICS.bmp~
    COPY_EXISTING ~_zarl.bmp~ ~portraits/NXARL.bmp~
    COPY_EXISTING ~_zars.bmp~ ~portraits/NXARS.bmp~
    COPY_EXISTING ~_eslickl.bmp~ ~portraits/NYEL.bmp~
    COPY_EXISTING ~_eslicks.bmp~ ~portraits/NYELS.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY_EXISTING ~ajantisl.bmp~ ~portraits/NAJAL.bmp~
      COPY_EXISTING ~ajantism.bmp~ ~portraits/NAJAM.bmp~
      COPY_EXISTING ~ajantiss.bmp~ ~portraits/NAJAS.bmp~
      COPY_EXISTING ~nanomenl.bmp~ ~portraits/NANCNL.bmp~ 
      COPY_EXISTING ~nanomenm.bmp~ ~portraits/NANCNM.bmp~ 
      COPY_EXISTING ~nanomens.bmp~ ~portraits/NANCNS.bmp~
      COPY_EXISTING ~branwel.bmp~ ~portraits/NBRANL.bmp~
      COPY_EXISTING ~branwem.bmp~ ~portraits/NBRANM.bmp~
      COPY_EXISTING ~branwes.bmp~ ~portraits/NBRANS.bmp~
      COPY_EXISTING ~ncerndl.bmp~ ~portraits/NCERL.bmp~ 
      COPY_EXISTING ~ncerndm.bmp~ ~portraits/NCERM.bmp~ 
      COPY_EXISTING ~ncernds.bmp~ ~portraits/NCERS.bmp~ 
      COPY_EXISTING ~edwinl.bmp~ ~portraits/NEDL.bmp~
      COPY_EXISTING ~edwinm.bmp~ ~portraits/NEDM.bmp~
      COPY_EXISTING ~edwins.bmp~ ~portraits/NEDS.bmp~
      COPY_EXISTING ~nedwinl.bmp~ ~portraits/NEDL.bmp~
      COPY_EXISTING ~nedwinm.bmp~ ~portraits/NEDM.bmp~
      COPY_EXISTING ~nedwins.bmp~ ~portraits/NEDS.bmp~
      COPY_EXISTING ~eldothl.bmp~ ~portraits/NELDL.bmp~
      COPY_EXISTING ~eldothm.bmp~ ~portraits/NELDM.bmp~
      COPY_EXISTING ~eldoths.bmp~ ~portraits/NELDS.bmp~
      COPY_EXISTING ~garrickl.bmp~ ~portraits/NGARL.bmp~
      COPY_EXISTING ~garrickm.bmp~ ~portraits/NGARM.bmp~
      COPY_EXISTING ~garricks.bmp~ ~portraits/NGARS.bmp~
      COPY_EXISTING ~imoenl.bmp~ ~portraits/NIMWL.bmp~
      COPY_EXISTING ~imoenm.bmp~ ~portraits/NIMWM.bmp~
      COPY_EXISTING ~imoens.bmp~ ~portraits/NIMWS.bmp~
      COPY_EXISTING ~nimoenl.bmp~ ~portraits/NIMWL.bmp~
      COPY_EXISTING ~nimoenm.bmp~ ~portraits/NIMWM.bmp~
      COPY_EXISTING ~nimoens.bmp~ ~portraits/NIMWS.bmp~
      COPY_EXISTING ~jaheiral.bmp~ ~portraits/NJAHL.bmp~
      COPY_EXISTING ~jaheiram.bmp~ ~portraits/NJAHM.bmp~
      COPY_EXISTING ~jaheiras.bmp~ ~portraits/NJAHS.bmp~
      COPY_EXISTING ~njaheirl.bmp~ ~portraits/NJAHL.bmp~
      COPY_EXISTING ~njaheirm.bmp~ ~portraits/NJAHM.bmp~
      COPY_EXISTING ~njaheirs.bmp~ ~portraits/NJAHS.bmp~ 
      COPY_EXISTING ~njanl.bmp~ ~portraits/NJANL.bmp~ 
      COPY_EXISTING ~njanm.bmp~ ~portraits/NJANM.bmp~ 
      COPY_EXISTING ~njans.bmp~ ~portraits/NJANS.bmp~
      COPY_EXISTING ~kagainl.bmp~ ~portraits/NKAGL.bmp~
      COPY_EXISTING ~kagainm.bmp~ ~portraits/NKAGM.bmp~
      COPY_EXISTING ~kagains.bmp~ ~portraits/NKAGS.bmp~
      COPY_EXISTING ~nkeldorl.bmp~ ~portraits/NKELL.bmp~ 
      COPY_EXISTING ~nkeldorm.bmp~ ~portraits/NKELM.bmp~ 
      COPY_EXISTING ~nkeldors.bmp~ ~portraits/NKELS.bmp~
      COPY_EXISTING ~kivanl.bmp~ ~portraits/NKIVL.bmp~
      COPY_EXISTING ~kivanm.bmp~ ~portraits/NKIVM.bmp~
      COPY_EXISTING ~kivans.bmp~ ~portraits/NKIVS.bmp~
      COPY_EXISTING ~nkorganl.bmp~ ~portraits/NKORGL.bmp~ 
      COPY_EXISTING ~nkorganm.bmp~ ~portraits/NKORGM.bmp~ 
      COPY_EXISTING ~nkorgans.bmp~ ~portraits/NKORGS.bmp~ 
      COPY_EXISTING ~nmazzyl.bmp~ ~portraits/NMAZZYL.bmp~ 
      COPY_EXISTING ~nmazzym.bmp~ ~portraits/NMAZZYM.bmp~ 
      COPY_EXISTING ~nmazzys.bmp~ ~portraits/NMAZZYS.bmp~ 
      COPY_EXISTING ~montarl.bmp~ ~portraits/NMONL.bmp~
      COPY_EXISTING ~montarm.bmp~ ~portraits/NMONM.bmp~
      COPY_EXISTING ~montars.bmp~ ~portraits/NMONS.bmp~ 
      COPY_EXISTING ~nnalial.bmp~ ~portraits/NNALL.bmp~
      COPY_EXISTING ~nnaliam.bmp~ ~portraits/NNALM.bmp~
      COPY_EXISTING ~nnalias.bmp~ ~portraits/NNALS.bmp~
      COPY_EXISTING ~quaylel.bmp~ ~portraits/NQUAL.bmp~
      COPY_EXISTING ~quaylem.bmp~ ~portraits/NQUAM.bmp~
      COPY_EXISTING ~quayles.bmp~ ~portraits/NQUAS.bmp~
      COPY_EXISTING ~safanal.bmp~ ~portraits/NSAFL.bmp~
      COPY_EXISTING ~safanam.bmp~ ~portraits/NSAFM.bmp~
      COPY_EXISTING ~safanas.bmp~ ~portraits/NSAFS.bmp~
      COPY_EXISTING ~nvalygal.bmp~ ~portraits/NVALL.bmp~ 
      COPY_EXISTING ~nvalygam.bmp~ ~portraits/NVALM.bmp~ 
      COPY_EXISTING ~nvalygas.bmp~ ~portraits/NVALS.bmp~ 
      COPY_EXISTING ~viconial.bmp~ ~portraits/NVICL.bmp~
      COPY_EXISTING ~viconiam.bmp~ ~portraits/NVICM.bmp~
      COPY_EXISTING ~viconias.bmp~ ~portraits/NVICS.bmp~
      COPY_EXISTING ~nviconl.bmp~ ~portraits/NVICL.bmp~
      COPY_EXISTING ~nviconm.bmp~ ~portraits/NVICM.bmp~
      COPY_EXISTING ~nvicons.bmp~ ~portraits/NVICS.bmp~
      COPY_EXISTING ~xzarl.bmp~ ~portraits/NXARL.bmp~
      COPY_EXISTING ~xzarm.bmp~ ~portraits/NXARM.bmp~
      COPY_EXISTING ~xzars.bmp~ ~portraits/NXARS.bmp~
      COPY_EXISTING ~yeslickl.bmp~ ~portraits/NYEL.bmp~
      COPY_EXISTING ~yeslickm.bmp~ ~portraits/NYEM.bmp~
      COPY_EXISTING ~yeslicks.bmp~ ~portraits/NYES.bmp~
      COPY_EXISTING ~nyoshiml.bmp~ ~portraits/NJOSHL.bmp~ 
      COPY_EXISTING ~nyoshimm.bmp~ ~portraits/NJOSHM.bmp~ 
      COPY_EXISTING ~nyoshims.bmp~ ~portraits/NJOSHS.bmp~ 
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY_EXISTING ~ajantisl.bmp~ ~portraits/NAJAL.bmp~
      COPY_EXISTING ~ajantism.bmp~ ~portraits/NAJAM.bmp~
      COPY_EXISTING ~ajantiss.bmp~ ~portraits/NAJAS.bmp~
      COPY_EXISTING ~nanomenl.bmp~ ~portraits/NANCNL.bmp~ 
      COPY_EXISTING ~nanomenm.bmp~ ~portraits/NANCNM.bmp~ 
      COPY_EXISTING ~nanomens.bmp~ ~portraits/NANCNS.bmp~
      COPY_EXISTING ~branwel.bmp~ ~portraits/NBRANL.bmp~
      COPY_EXISTING ~branwem.bmp~ ~portraits/NBRANM.bmp~
      COPY_EXISTING ~branwes.bmp~ ~portraits/NBRANS.bmp~
      COPY_EXISTING ~ncerndl.bmp~ ~portraits/NCERL.bmp~ 
      COPY_EXISTING ~ncerndm.bmp~ ~portraits/NCERM.bmp~ 
      COPY_EXISTING ~ncernds.bmp~ ~portraits/NCERS.bmp~ 
      COPY_EXISTING ~edwinl.bmp~ ~portraits/NEDL.bmp~
      COPY_EXISTING ~edwinm.bmp~ ~portraits/NEDM.bmp~
      COPY_EXISTING ~edwins.bmp~ ~portraits/NEDS.bmp~
      COPY_EXISTING ~nedwinl.bmp~ ~portraits/NEDL.bmp~
      COPY_EXISTING ~nedwinm.bmp~ ~portraits/NEDM.bmp~
      COPY_EXISTING ~nedwins.bmp~ ~portraits/NEDS.bmp~
      COPY_EXISTING ~eldothl.bmp~ ~portraits/NELDL.bmp~
      COPY_EXISTING ~eldothm.bmp~ ~portraits/NELDM.bmp~
      COPY_EXISTING ~eldoths.bmp~ ~portraits/NELDS.bmp~
      COPY_EXISTING ~garrickl.bmp~ ~portraits/NGARL.bmp~
      COPY_EXISTING ~garrickm.bmp~ ~portraits/NGARM.bmp~
      COPY_EXISTING ~garricks.bmp~ ~portraits/NGARS.bmp~
      COPY_EXISTING ~imoenl.bmp~ ~portraits/NIMWL.bmp~
      COPY_EXISTING ~imoenm.bmp~ ~portraits/NIMWM.bmp~
      COPY_EXISTING ~imoens.bmp~ ~portraits/NIMWS.bmp~
      COPY_EXISTING ~nimoenl.bmp~ ~portraits/NIMWL.bmp~
      COPY_EXISTING ~nimoenm.bmp~ ~portraits/NIMWM.bmp~
      COPY_EXISTING ~nimoens.bmp~ ~portraits/NIMWS.bmp~
      COPY_EXISTING ~jaheiral.bmp~ ~portraits/NJAHL.bmp~
      COPY_EXISTING ~jaheiram.bmp~ ~portraits/NJAHM.bmp~
      COPY_EXISTING ~jaheiras.bmp~ ~portraits/NJAHS.bmp~
      COPY_EXISTING ~njaheirl.bmp~ ~portraits/NJAHL.bmp~
      COPY_EXISTING ~njaheirm.bmp~ ~portraits/NJAHM.bmp~
      COPY_EXISTING ~njaheirs.bmp~ ~portraits/NJAHS.bmp~ 
      COPY_EXISTING ~njanl.bmp~ ~portraits/NJANL.bmp~ 
      COPY_EXISTING ~njanm.bmp~ ~portraits/NJANM.bmp~ 
      COPY_EXISTING ~njans.bmp~ ~portraits/NJANS.bmp~ 
      COPY_EXISTING ~kagainl.bmp~ ~portraits/NKAGL.bmp~
      COPY_EXISTING ~kagainm.bmp~ ~portraits/NKAGM.bmp~
      COPY_EXISTING ~kagains.bmp~ ~portraits/NKAGS.bmp~
      COPY_EXISTING ~nkeldorl.bmp~ ~portraits/NKELL.bmp~ 
      COPY_EXISTING ~nkeldorm.bmp~ ~portraits/NKELM.bmp~ 
      COPY_EXISTING ~nkeldors.bmp~ ~portraits/NKELS.bmp~
      COPY_EXISTING ~kivanl.bmp~ ~portraits/NKIVL.bmp~
      COPY_EXISTING ~kivanm.bmp~ ~portraits/NKIVM.bmp~
      COPY_EXISTING ~kivans.bmp~ ~portraits/NKIVS.bmp~
      COPY_EXISTING ~nkorganl.bmp~ ~portraits/NKORGL.bmp~ 
      COPY_EXISTING ~nkorganm.bmp~ ~portraits/NKORGM.bmp~ 
      COPY_EXISTING ~nkorgans.bmp~ ~portraits/NKORGS.bmp~ 
      COPY_EXISTING ~nmazzyl.bmp~ ~portraits/NMAZZYL.bmp~ 
      COPY_EXISTING ~nmazzym.bmp~ ~portraits/NMAZZYM.bmp~ 
      COPY_EXISTING ~nmazzys.bmp~ ~portraits/NMAZZYS.bmp~
      COPY_EXISTING ~montarl.bmp~ ~portraits/NMONL.bmp~
      COPY_EXISTING ~montarm.bmp~ ~portraits/NMONM.bmp~
      COPY_EXISTING ~montars.bmp~ ~portraits/NMONS.bmp~ 
      COPY_EXISTING ~nnalial.bmp~ ~portraits/NNALL.bmp~
      COPY_EXISTING ~nnaliam.bmp~ ~portraits/NNALM.bmp~
      COPY_EXISTING ~nnalias.bmp~ ~portraits/NNALS.bmp~
      COPY_EXISTING ~quaylel.bmp~ ~portraits/NQUAL.bmp~
      COPY_EXISTING ~quaylem.bmp~ ~portraits/NQUAM.bmp~
      COPY_EXISTING ~quayles.bmp~ ~portraits/NQUAS.bmp~
      COPY_EXISTING ~safanal.bmp~ ~portraits/NSAFL.bmp~
      COPY_EXISTING ~safanam.bmp~ ~portraits/NSAFM.bmp~
      COPY_EXISTING ~safanas.bmp~ ~portraits/NSAFS.bmp~
      COPY_EXISTING ~nvalygal.bmp~ ~portraits/NVALL.bmp~ 
      COPY_EXISTING ~nvalygam.bmp~ ~portraits/NVALM.bmp~ 
      COPY_EXISTING ~nvalygas.bmp~ ~portraits/NVALS.bmp~ 
      COPY_EXISTING ~viconial.bmp~ ~portraits/NVICL.bmp~
      COPY_EXISTING ~viconiam.bmp~ ~portraits/NVICM.bmp~
      COPY_EXISTING ~viconias.bmp~ ~portraits/NVICS.bmp~
      COPY_EXISTING ~nviconl.bmp~ ~portraits/NVICL.bmp~
      COPY_EXISTING ~nviconm.bmp~ ~portraits/NVICM.bmp~
      COPY_EXISTING ~nvicons.bmp~ ~portraits/NVICS.bmp~
      COPY_EXISTING ~xzarl.bmp~ ~portraits/NXARL.bmp~
      COPY_EXISTING ~xzarm.bmp~ ~portraits/NXARM.bmp~
      COPY_EXISTING ~xzars.bmp~ ~portraits/NXARS.bmp~
      COPY_EXISTING ~yeslickl.bmp~ ~portraits/NYEL.bmp~
      COPY_EXISTING ~yeslickm.bmp~ ~portraits/NYEM.bmp~
      COPY_EXISTING ~yeslicks.bmp~ ~portraits/NYES.bmp~
      COPY_EXISTING ~nyoshiml.bmp~ ~portraits/NYOSHL.bmp~ 
      COPY_EXISTING ~nyoshimm.bmp~ ~portraits/NYOSHM.bmp~ 
      COPY_EXISTING ~nyoshims.bmp~ ~portraits/NYOSHS.bmp~ 
    END ELSE BEGIN //vanilla BG1
      COPY_EXISTING ~ajantisl.bmp~ ~portraits/NAJAL.bmp~
      COPY_EXISTING ~ajantiss.bmp~ ~portraits/NAJAS.bmp~
      COPY_EXISTING ~branwel.bmp~ ~portraits/NBRANL.bmp~
      COPY_EXISTING ~branwes.bmp~ ~portraits/NBRANS.bmp~
      COPY_EXISTING ~edwinm.bmp~ ~portraits/NEDM.bmp~
      COPY_EXISTING ~edwins.bmp~ ~portraits/NEDS.bmp~
      COPY_EXISTING ~eldothl.bmp~ ~portraits/NELDL.bmp~
      COPY_EXISTING ~eldoths.bmp~ ~portraits/NELDS.bmp~
      COPY_EXISTING ~garrickl.bmp~ ~portraits/NGARL.bmp~
      COPY_EXISTING ~garricks.bmp~ ~portraits/NGARS.bmp~
      COPY_EXISTING ~imoenm.bmp~ ~portraits/NIMWM.bmp~
      COPY_EXISTING ~imoens.bmp~ ~portraits/NIMWS.bmp~
      COPY_EXISTING ~jaheiram.bmp~ ~portraits/NJAHM.bmp~
      COPY_EXISTING ~jaheiras.bmp~ ~portraits/NJAHS.bmp~
      COPY_EXISTING ~kagainl.bmp~ ~portraits/NKAGL.bmp~
      COPY_EXISTING ~kagains.bmp~ ~portraits/NKAGS.bmp~
      COPY_EXISTING ~kivanl.bmp~ ~portraits/NKIVL.bmp~
      COPY_EXISTING ~kivans.bmp~ ~portraits/NKIVS.bmp~
      COPY_EXISTING ~montarl.bmp~ ~portraits/NMONL.bmp~
      COPY_EXISTING ~montars.bmp~ ~portraits/NMONS.bmp~
      COPY_EXISTING ~quaylel.bmp~ ~portraits/NQUAL.bmp~
      COPY_EXISTING ~quayles.bmp~ ~portraits/NQUAS.bmp~
      COPY_EXISTING ~safanal.bmp~ ~portraits/NSAFL.bmp~
      COPY_EXISTING ~safanas.bmp~ ~portraits/NSAFS.bmp~
      COPY_EXISTING ~nviconm.bmp~ ~portraits/NVICM.bmp~
      COPY_EXISTING ~viconias.bmp~ ~portraits/NVICS.bmp~
      COPY_EXISTING ~xzarl.bmp~ ~portraits/NXARL.bmp~
      COPY_EXISTING ~xzars.bmp~ ~portraits/NXARS.bmp~
      COPY_EXISTING ~yeslickl.bmp~ ~portraits/NYEL.bmp~
      COPY_EXISTING ~yeslicks.bmp~ ~portraits/NYES.bmp~
    END
  END
END

/* NPC PORTRAITS */ 

/* Ajantis */
BEGIN ~Ajantis~
SUBCOMPONENT ~Ajantis Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/ajantis/NAJAM.bmp~  ~override/_jantisl.bmp~
    COPY ~a_portraits/bmp/ajantis/NAJAS.bmp~  ~override/_jantiss.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/ajantis/NAJAL.bmp~  ~override/ajantisl.bmp~
      COPY ~a_portraits/bmp/ajantis/NAJAM.bmp~  ~override/ajantism.bmp~
      COPY ~a_portraits/bmp/ajantis/NAJAS.bmp~  ~override/ajantiss.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/ajantis/NAJAL.bmp~  ~override/ajantisl.bmp~
      COPY ~a_portraits/bmp/ajantis/NAJAM.bmp~  ~override/ajantism.bmp~
      COPY ~a_portraits/bmp/ajantis/NAJAS.bmp~  ~override/ajantiss.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/ajantis/NAJAM.bmp~  ~override/ajantisl.bmp~
      COPY ~a_portraits/bmp/ajantis/NAJAS.bmp~  ~override/ajantiss.bmp~
    END
  END 
END 

/* Anomen */
BEGIN ~Anomen (Chaotic Neutral,  Bad Boy)~
SUBCOMPONENT ~Anomen Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/anomen/NANCNL.bmp~  ~override/nanomenl.bmp~
      COPY ~a_portraits/bmp/anomen/NANCNM.bmp~  ~override/nanomenm.bmp~
      COPY ~a_portraits/bmp/anomen/NANCNS.bmp~  ~override/nanomens.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/anomen/NANCNL.bmp~  ~override/nanomenl.bmp~
      COPY ~a_portraits/bmp/anomen/NANCNM.bmp~  ~override/nanomenm.bmp~
      COPY ~a_portraits/bmp/anomen/NANCNS.bmp~  ~override/nanomens.bmp~
    END
  END


/* Branwen */
BEGIN ~Branwen~
SUBCOMPONENT ~Branwen Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/branwen/NBRANM.bmp~  ~override/_ranwel.bmp~
    COPY ~a_portraits/bmp/branwen/NBRANS.bmp~  ~override/_ranwes.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/branwen/NBRANL.bmp~  ~override/branwel.bmp~
      COPY ~a_portraits/bmp/branwen/NBRANM.bmp~  ~override/branwem.bmp~
      COPY ~a_portraits/bmp/branwen/NBRANS.bmp~  ~override/branwes.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/branwen/NBRANL.bmp~  ~override/branwel.bmp~
      COPY ~a_portraits/bmp/branwen/NBRANM.bmp~  ~override/branwem.bmp~
      COPY ~a_portraits/bmp/branwen/NBRANS.bmp~  ~override/branwes.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/branwen/NBRANM.bmp~  ~override/branwel.bmp~
      COPY ~a_portraits/bmp/branwen/NBRANS.bmp~  ~override/branwes.bmp~
    END
  END
END 

/* Cernd */
BEGIN ~Cernd 1(werewolf)~
SUBCOMPONENT ~Cernd Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/cernd/NCER1L.bmp~  ~override/ncerndl.bmp~
      COPY ~a_portraits/bmp/cernd/NCER1M.bmp~  ~override/ncerndm.bmp~
      COPY ~a_portraits/bmp/cernd/NCER1S.bmp~  ~override/ncernds.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/cernd/NCER1L.bmp~  ~override/ncerndl.bmp~
      COPY ~a_portraits/bmp/cernd/NCER1M.bmp~  ~override/ncerndm.bmp~
      COPY ~a_portraits/bmp/cernd/NCER1S.bmp~  ~override/ncernds.bmp~
    END
  END

BEGIN ~Cernd 2~
SUBCOMPONENT ~Cernd Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/cernd/NCER2L.bmp~  ~override/ncerndl.bmp~
      COPY ~a_portraits/bmp/cernd/NCER2M.bmp~  ~override/ncerndm.bmp~
      COPY ~a_portraits/bmp/cernd/NCER2S.bmp~  ~override/ncernds.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/cernd/NCER2L.bmp~  ~override/ncerndl.bmp~
      COPY ~a_portraits/bmp/cernd/NCER2M.bmp~  ~override/ncerndm.bmp~
      COPY ~a_portraits/bmp/cernd/NCER2S.bmp~  ~override/ncernds.bmp~
    END
  END

/* Edwin */
BEGIN ~Edwin 1 ~
SUBCOMPONENT ~Edwin Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/edwin/NED1M.bmp~  ~override/_dwinl.bmp~
    COPY ~a_portraits/bmp/edwin/NED1S.bmp~  ~override/_dwins.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/edwin/NED1L.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED1M.bmp~  ~override/edwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED1S.bmp~  ~override/edwins.bmp~
      COPY ~a_portraits/bmp/edwin/NED1L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED1M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED1S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/edwin/NED1L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED1M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED1S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/edwin/NED1M.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED1S.bmp~  ~override/edwins.bmp~
    END
  END
END 

BEGIN ~Edwin 2~
SUBCOMPONENT ~Edwin Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/edwin/NED2M.bmp~  ~override/_dwinl.bmp~
    COPY ~a_portraits/bmp/edwin/NED2S.bmp~  ~override/_dwins.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/edwin/NED2L.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED2M.bmp~  ~override/edwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED2S.bmp~  ~override/edwins.bmp~
      COPY ~a_portraits/bmp/edwin/NED2L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED2M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED2S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/edwin/NED2L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED2M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED2S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/edwin/NED2M.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED2S.bmp~  ~override/edwins.bmp~
    END
  END
END 

BEGIN ~Edwin 3~
SUBCOMPONENT ~Edwin Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/edwin/NED3M.bmp~  ~override/_dwinl.bmp~
    COPY ~a_portraits/bmp/edwin/NED3S.bmp~  ~override/_dwins.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/edwin/NED3L.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED3M.bmp~  ~override/edwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED3S.bmp~  ~override/edwins.bmp~
      COPY ~a_portraits/bmp/edwin/NED3L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED3M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED3S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/edwin/NED3L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED3M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED3S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/edwin/NED3M.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED3S.bmp~  ~override/edwins.bmp~
    END
  END
END 

BEGIN ~Edwin 4~
SUBCOMPONENT ~Edwin Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/edwin/NED4M.bmp~  ~override/_dwinl.bmp~
    COPY ~a_portraits/bmp/edwin/NED4S.bmp~  ~override/_dwins.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/edwin/NED4L.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED4M.bmp~  ~override/edwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED4S.bmp~  ~override/edwins.bmp~
      COPY ~a_portraits/bmp/edwin/NED4L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED4M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED4S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/edwin/NED4L.bmp~  ~override/nedwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED4M.bmp~  ~override/nedwinm.bmp~
      COPY ~a_portraits/bmp/edwin/NED4S.bmp~  ~override/nedwins.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/edwin/NED4M.bmp~  ~override/edwinl.bmp~
      COPY ~a_portraits/bmp/edwin/NED4S.bmp~  ~override/edwins.bmp~
    END
  END
END 

/* Eldoth */
BEGIN ~Eldoth~
SUBCOMPONENT ~Eldoth Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/eldoth/NELDM.bmp~  ~override/_ldothl.bmp~
    COPY ~a_portraits/bmp/eldoth/NELDS.bmp~  ~override/_ldoths.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/eldoth/NELDL.bmp~  ~override/eldothl.bmp~
      COPY ~a_portraits/bmp/eldoth/NELDM.bmp~  ~override/eldothm.bmp~
      COPY ~a_portraits/bmp/eldoth/NELDS.bmp~  ~override/eldoths.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/eldoth/NELDL.bmp~  ~override/eldothl.bmp~
      COPY ~a_portraits/bmp/eldoth/NELDM.bmp~  ~override/eldothm.bmp~
      COPY ~a_portraits/bmp/eldoth/NELDS.bmp~  ~override/eldoths.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/eldoth/NELDM.bmp~  ~override/eldothl.bmp~
      COPY ~a_portraits/bmp/eldoth/NELDS.bmp~  ~override/eldoths.bmp~
    END
  END
END 

/* Garrick */
BEGIN ~Garrick Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/garrick/NGARM.bmp~  ~override/_arrickl.bmp~
    COPY ~a_portraits/bmp/garrick/NGARS.bmp~  ~override/_arricks.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/garrick/NGARL.bmp~  ~override/garrickl.bmp~
      COPY ~a_portraits/bmp/garrick/NGARM.bmp~  ~override/garrickm.bmp~
      COPY ~a_portraits/bmp/garrick/NGARS.bmp~  ~override/garricks.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/garrick/NGARL.bmp~  ~override/garrickl.bmp~
      COPY ~a_portraits/bmp/garrick/NGARM.bmp~  ~override/garrickm.bmp~
      COPY ~a_portraits/bmp/garrick/NGARS.bmp~  ~override/garricks.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/garrick/NGARM.bmp~  ~override/garrickl.bmp~
      COPY ~a_portraits/bmp/garrick/NGARS.bmp~  ~override/garricks.bmp~
    END
  END
END 
  
/* Imoen */
BEGIN ~Imoen 1 (wizard)~
SUBCOMPONENT ~Imoen Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/imoen/NIMW1M.bmp~  ~override/_moenl.bmp~
    COPY ~a_portraits/bmp/imoen/NIMW1S.bmp~  ~override/_moens.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/imoen/NIMW1L.bmp~  ~override/imoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1M.bmp~  ~override/imoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1S.bmp~  ~override/imoens.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1L.bmp~  ~override/nimoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1M.bmp~  ~override/nimoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1S.bmp~  ~override/nimoens.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/imoen/NIMW1L.bmp~  ~override/nimoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1M.bmp~  ~override/nimoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1S.bmp~  ~override/nimoens.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/imoen/NIMW1M.bmp~  ~override/imoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIMW1S.bmp~  ~override/imoens.bmp~
    END
  END
END 

BEGIN ~Imoen 2 (thief)~
SUBCOMPONENT ~Imoen Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/imoen/NIM1M.bmp~  ~override/_moenl.bmp~
    COPY ~a_portraits/bmp/imoen/NIM1S.bmp~  ~override/_moens.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/imoen/NIM1L.bmp~  ~override/imoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1M.bmp~  ~override/imoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1S.bmp~  ~override/imoens.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1L.bmp~  ~override/nimoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1M.bmp~  ~override/nimoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1S.bmp~  ~override/nimoens.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/imoen/NIM1L.bmp~  ~override/nimoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1M.bmp~  ~override/nimoenm.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1S.bmp~  ~override/nimoens.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/imoen/NIM1M.bmp~  ~override/imoenl.bmp~
      COPY ~a_portraits/bmp/imoen/NIM1S.bmp~  ~override/imoens.bmp~
    END
  END
END 

/* Jaheira */
BEGIN ~Jaheira 1 (with staff)~
SUBCOMPONENT ~Jaheira Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/jaheira/NJAH1M.bmp~  ~override/_aheiral.bmp~
    COPY ~a_portraits/bmp/jaheira/NJAH1S.bmp~  ~override/_aheiras.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/jaheira/NJAH1L.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1M.bmp~  ~override/jaheiram.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1S.bmp~  ~override/jaheiras.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1M.bmp~  ~override/njeheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/jaheira/NJAH1L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1M.bmp~  ~override/njaheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/jaheira/NJAH1M.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH1S.bmp~  ~override/jaheiras.bmp~
    END
  END
END 

BEGIN ~Jaheira 2 (guys, you will love it!)~
SUBCOMPONENT ~Jaheira Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/jaheira/NJAH2M.bmp~  ~override/_aheiral.bmp~
    COPY ~a_portraits/bmp/jaheira/NJAH2S.bmp~  ~override/_aheiras.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/jaheira/NJAH2L.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2M.bmp~  ~override/jaheiram.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2S.bmp~  ~override/jaheiras.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2M.bmp~  ~override/njeheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/jaheira/NJAH2L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2M.bmp~  ~override/njaheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/jaheira/NJAH2M.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH2S.bmp~  ~override/jaheiras.bmp~
    END
  END
END 

BEGIN ~Jaheira 3 (with bow)~
SUBCOMPONENT ~Jaheira Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/jaheira/NJAH3M.bmp~  ~override/_aheiral.bmp~
    COPY ~a_portraits/bmp/jaheira/NJAH3S.bmp~  ~override/_aheiras.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/jaheira/NJAH3L.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3M.bmp~  ~override/jaheiram.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3S.bmp~  ~override/jaheiras.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3M.bmp~  ~override/njeheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/jaheira/NJAH3L.bmp~  ~override/njaheirl.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3M.bmp~  ~override/njaheirm.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3S.bmp~  ~override/njaheirs.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/jaheira/NJAH3M.bmp~  ~override/jaheiral.bmp~
      COPY ~a_portraits/bmp/jaheira/NJAH3S.bmp~  ~override/jaheiras.bmp~
    END
  END
END 

/* Jan */
BEGIN ~Jan~
SUBCOMPONENT ~Jan Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/jan/NJANL.bmp~  ~override/njanl.bmp~
      COPY ~a_portraits/bmp/jan/NJANM.bmp~  ~override/njanm.bmp~
      COPY ~a_portraits/bmp/jan/NJANS.bmp~  ~override/njans.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/jan/NJANL.bmp~  ~override/njanl.bmp~
      COPY ~a_portraits/bmp/jan/NJANM.bmp~  ~override/njanm.bmp~
      COPY ~a_portraits/bmp/jan/NJANS.bmp~  ~override/njans.bmp~
    END
  END

/* Kagain */
BEGIN ~Kagain~
SUBCOMPONENT ~Kagain Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/kagain/NKAGM.bmp~  ~override/_againl.bmp~
    COPY ~a_portraits/bmp/kagain/NKAGS.bmp~  ~override/_agains.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/kagain/NKAGL.bmp~  ~override/kagainl.bmp~
      COPY ~a_portraits/bmp/kagain/NKAGM.bmp~  ~override/kagainm.bmp~
      COPY ~a_portraits/bmp/kagain/NKAGS.bmp~  ~override/kagains.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/kagain/NKAGL.bmp~  ~override/kagainl.bmp~
      COPY ~a_portraits/bmp/kagain/NKAGM.bmp~  ~override/kagainm.bmp~
      COPY ~a_portraits/bmp/kagain/NKAGS.bmp~  ~override/kagains.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/kagain/NKAGM.bmp~  ~override/kagainl.bmp~
      COPY ~a_portraits/bmp/kagain/NKAGS.bmp~  ~override/kagains.bmp~
    END
  END
END 

/* Keldorn */
BEGIN ~Keldorn 1~ 
SUBCOMPONENT ~Keldorn Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/keldorn/NKEL1L.bmp~  ~override/nkeldorl.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL1M.bmp~  ~override/nkeldorm.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL1S.bmp~  ~override/nkeldors.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/keldorn/NKEL1L.bmp~  ~override/nkeldorl.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL1M.bmp~  ~override/nkeldorm.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL1S.bmp~  ~override/nkeldors.bmp~
    END
  END

BEGIN ~Keldorn 2~ 
SUBCOMPONENT ~Keldorn Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/keldorn/NKEL2L.bmp~  ~override/nkeldorl.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL2M.bmp~  ~override/nkeldorm.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL2S.bmp~  ~override/nkeldors.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/keldorn/NKEL2L.bmp~  ~override/nkeldorl.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL2M.bmp~  ~override/nkeldorm.bmp~
      COPY ~a_portraits/bmp/keldorn/NKEL2S.bmp~  ~override/nkeldors.bmp~
    END
  END

/* Kivan */
BEGIN ~Kivan~
SUBCOMPONENT ~Kivan Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/kivan/NKIVM.bmp~  ~override/_ivanl.bmp~
    COPY ~a_portraits/bmp/kivan/NKIVS.bmp~  ~override/_ivans.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/kivan/NKIVL.bmp~  ~override/kivanl.bmp~
      COPY ~a_portraits/bmp/kivan/NKIVM.bmp~  ~override/kivanm.bmp~
      COPY ~a_portraits/bmp/kivan/NKIVS.bmp~  ~override/kivans.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/kivan/NKIVL.bmp~  ~override/kivanl.bmp~
      COPY ~a_portraits/bmp/kivan/NKIVM.bmp~  ~override/kivanm.bmp~
      COPY ~a_portraits/bmp/kivan/NKIVS.bmp~  ~override/kivans.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/kivan/NKIVM.bmp~  ~override/kivanl.bmp~
      COPY ~a_portraits/bmp/kivan/NKIVS.bmp~  ~override/kivans.bmp~
    END
  END
END 

/* Korgan */
BEGIN ~Korgan 1~
SUBCOMPONENT ~Korgan Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/korgan/NKORG1L.bmp~  ~override/nkorganl.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG1M.bmp~  ~override/nkorganm.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG1S.bmp~  ~override/nkorgans.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/korgan/NKORG1L.bmp~  ~override/nkorganl.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG1M.bmp~  ~override/nkorganm.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG1S.bmp~  ~override/nkorgans.bmp~
    END
  END

BEGIN ~Korgan 2~
SUBCOMPONENT ~Korgan Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/korgan/NKORG2L.bmp~  ~override/nkorganl.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG2M.bmp~  ~override/nkorganm.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG2S.bmp~  ~override/nkorgans.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/korgan/NKORG2L.bmp~  ~override/nkorganl.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG2M.bmp~  ~override/nkorganm.bmp~
      COPY ~a_portraits/bmp/korgan/NKORG2S.bmp~  ~override/nkorgans.bmp~
    END
  END

/* Mazzy */
BEGIN ~Mazzy~
SUBCOMPONENT ~Mazzy Portraits~
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/mazzy/NMAZZYL.bmp~  ~override/nmazzyl.bmp~
      COPY ~a_portraits/bmp/mazzy/NMAZZYM.bmp~  ~override/nmazzym.bmp~
      COPY ~a_portraits/bmp/mazzy/NMAZZYS.bmp~  ~override/nmazzys.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/mazzy/NMAZZYL.bmp~  ~override/nmazzyl.bmp~
      COPY ~a_portraits/bmp/mazzy/NMAZZYM.bmp~  ~override/nmazzym.bmp~
      COPY ~a_portraits/bmp/mazzy/NMAZZYS.bmp~  ~override/nmazzys.bmp~
    END
  END

/* Montaron */
BEGIN ~Montaron~
SUBCOMPONENT ~Montaron Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/montaron/NMONM.bmp~  ~override/_ontarl.bmp~
    COPY ~a_portraits/bmp/montaron/NMONS.bmp~  ~override/_ontars.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/montaron/NMONL.bmp~  ~override/montarl.bmp~
      COPY ~a_portraits/bmp/montaron/NMONM.bmp~  ~override/montarm.bmp~
      COPY ~a_portraits/bmp/montaron/NMONS.bmp~  ~override/montars.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/montaron/NMONL.bmp~  ~override/montarl.bmp~
      COPY ~a_portraits/bmp/montaron/NMONM.bmp~  ~override/montarm.bmp~
      COPY ~a_portraits/bmp/montaron/NMONS.bmp~  ~override/montars.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/montaron/NMONM.bmp~  ~override/montarl.bmp~
      COPY ~a_portraits/bmp/montaron/NMONS.bmp~  ~override/montars.bmp~
    END
  END
END 


/* Nalia */
BEGIN ~Nalia 1~ 
SUBCOMPONENT ~Nalia Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/nalia/NNAL1L.bmp~  ~override/nnalial.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL1M.bmp~  ~override/nnaliam.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL1S.bmp~  ~override/nnalias.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/nalia/NNAL1L.bmp~  ~override/nnalial.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL1M.bmp~  ~override/nnaliam.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL1S.bmp~  ~override/nnalias.bmp~
    END
  END

BEGIN ~Nalia 2~ 
SUBCOMPONENT ~Nalia Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/nalia/NNAL2L.bmp~  ~override/nnalial.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL2M.bmp~  ~override/nnaliam.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL2S.bmp~  ~override/nnalias.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/nalia/NNAL2L.bmp~  ~override/nnalial.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL2M.bmp~  ~override/nnaliam.bmp~
      COPY ~a_portraits/bmp/nalia/NNAL2S.bmp~  ~override/nnalias.bmp~
    END
  END


/* Quayle */
BEGIN ~Quayle~
SUBCOMPONENT ~Quayle Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/quayle/NQUAM.bmp~  ~override/_uaylel.bmp~
    COPY ~a_portraits/bmp/quayle/NQUAS.bmp~  ~override/_uayles.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/quayle/NQUAL.bmp~  ~override/quaylel.bmp~
      COPY ~a_portraits/bmp/quayle/NQUAM.bmp~  ~override/quaylem.bmp~
      COPY ~a_portraits/bmp/quayle/NQUAS.bmp~  ~override/quayles.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/quayle/NQUAL.bmp~  ~override/quaylel.bmp~
      COPY ~a_portraits/bmp/quayle/NQUAM.bmp~  ~override/quaylem.bmp~
      COPY ~a_portraits/bmp/quayle/NQUAS.bmp~  ~override/quayles.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/quayle/NQUAM.bmp~  ~override/quaylel.bmp~
      COPY ~a_portraits/bmp/quayle/NQUAS.bmp~  ~override/quayles.bmp~
    END
  END
END 

/* Safana */
BEGIN ~Safana~
SUBCOMPONENT ~Safana Portraits~ 
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/safana/NSAFM.bmp~  ~override/_afanal.bmp~
    COPY ~a_portraits/bmp/safana/NSAFS.bmp~  ~override/_afanas.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/safana/NSAFL.bmp~  ~override/safanal.bmp~
      COPY ~a_portraits/bmp/safana/NSAFM.bmp~  ~override/safanam.bmp~
      COPY ~a_portraits/bmp/safana/NSAFS.bmp~  ~override/safanas.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/safana/NSAFL.bmp~  ~override/safanal.bmp~
      COPY ~a_portraits/bmp/safana/NSAFM.bmp~  ~override/safanam.bmp~
      COPY ~a_portraits/bmp/safana/NSAFS.bmp~  ~override/safanas.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/safana/NSAFM.bmp~  ~override/safanal.bmp~
      COPY ~a_portraits/bmp/safana/NSAFS.bmp~  ~override/safanas.bmp~
    END
  END
END 



/* Sarevok */
BEGIN ~Sarevok 1~ 
SUBCOMPONENT ~Sarevok Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar6111.are~ ~ToB is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/sarevok/NSAR1L.bmp~  ~override/sarevokl.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR1M.bmp~  ~override/sarevokm.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR1S.bmp~  ~override/sarevoks.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/sarevok/NSAR1L.bmp~  ~override/sarevokl.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR1M.bmp~  ~override/sarevokm.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR1S.bmp~  ~override/sarevoks.bmp~
    END
  END

BEGIN ~Sarevok 2 (with sword)~ 
SUBCOMPONENT ~Sarevok Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar6111.are~ ~ToB is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/sarevok/NSAR2L.bmp~  ~override/sarevokl.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR2M.bmp~  ~override/sarevokm.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR2S.bmp~  ~override/sarevoks.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/sarevok/NSAR2L.bmp~  ~override/sarevokl.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR2M.bmp~  ~override/sarevokm.bmp~
      COPY ~a_portraits/bmp/sarevok/NSAR2S.bmp~  ~override/sarevoks.bmp~
    END
  END

/* Valygar */

BEGIN ~Valygar 1~ 
SUBCOMPONENT ~Valygar Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/valygar/NVAL1L.bmp~  ~override/nvalygal.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL1M.bmp~  ~override/nvalygam.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL1S.bmp~  ~override/nvalygas.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/valygar/NVAL1L.bmp~  ~override/nvalygal.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL1M.bmp~  ~override/nvalygam.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL1S.bmp~  ~override/nvalygas.bmp~
    END
  END

BEGIN ~Valygar 2~ 
SUBCOMPONENT ~Valygar Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/valygar/NVAL2L.bmp~  ~override/nvalygal.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL2M.bmp~  ~override/nvalygam.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL2S.bmp~  ~override/nvalygas.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/valygar/NVAL2L.bmp~  ~override/nvalygal.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL2M.bmp~  ~override/nvalygam.bmp~
      COPY ~a_portraits/bmp/valygar/NVAL2S.bmp~  ~override/nvalygas.bmp~
    END
  END

/* Viconia */
BEGIN ~Viconia (sexy)~
SUBCOMPONENT ~Viconia Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/viconia/NVICM.bmp~  ~override/_iconial.bmp~
    COPY ~a_portraits/bmp/viconia/NVICS.bmp~  ~override/_iconias.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/viconia/NVICL.bmp~  ~override/viconial.bmp~
      COPY ~a_portraits/bmp/viconia/NVICM.bmp~  ~override/viconiam.bmp~
      COPY ~a_portraits/bmp/viconia/NVICS.bmp~  ~override/viconias.bmp~
      COPY ~a_portraits/bmp/viconia/NVICL.bmp~  ~override/nviconl.bmp~
      COPY ~a_portraits/bmp/viconia/NVICM.bmp~  ~override/nviconm.bmp~
      COPY ~a_portraits/bmp/viconia/NVICS.bmp~  ~override/nvicons.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/viconia/NVICL.bmp~  ~override/nviconl.bmp~
      COPY ~a_portraits/bmp/viconia/NVICM.bmp~  ~override/nviconm.bmp~
      COPY ~a_portraits/bmp/viconia/NVICS.bmp~  ~override/nvicons.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/viconia/NVICM.bmp~  ~override/viconial.bmp~
      COPY ~a_portraits/bmp/viconia/NVICS.bmp~  ~override/viconias.bmp~
    END
  END
END 


/* Xzar */
BEGIN ~Xzar~
SUBCOMPONENT ~Xzar Portratis~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/xzar/NXARM.bmp~  ~override/_zarl.bmp~
    COPY ~a_portraits/bmp/xzar/NXARS.bmp~  ~override/_zars.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/xzar/NXARL.bmp~  ~override/xzarl.bmp~
      COPY ~a_portraits/bmp/xzar/NXARM.bmp~  ~override/xzarm.bmp~
      COPY ~a_portraits/bmp/xzar/NXARS.bmp~  ~override/xzars.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/xzar/NXARL.bmp~  ~override/xzarl.bmp~
      COPY ~a_portraits/bmp/xzar/NXARM.bmp~  ~override/xzarm.bmp~
      COPY ~a_portraits/bmp/xzar/NXARS.bmp~  ~override/xzars.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/xzar/NXARM.bmp~  ~override/xzarl.bmp~
      COPY ~a_portraits/bmp/xzar/NXARS.bmp~  ~override/xzars.bmp~
    END
  END
END 

/* Yeslick */
BEGIN ~Yeslick~
SUBCOMPONENT ~Yeslick Portraits~
  ACTION_IF FILE_EXISTS ~override/_sw1h01.itm~ THEN BEGIN // Tutu
    COPY ~a_portraits/bmp/yeslick/NYEM.bmp~  ~override/_eslickl.bmp~
    COPY ~a_portraits/bmp/yeslick/NYES.bmp~  ~override/_eslicks.bmp~
  END ELSE BEGIN 
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/yeslick/NYEL.bmp~  ~override/yeslickl.bmp~
      COPY ~a_portraits/bmp/yeslick/NYEM.bmp~  ~override/yeslickm.bmp~
      COPY ~a_portraits/bmp/yeslick/NYES.bmp~  ~override/yeslicks.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/yeslick/NYEL.bmp~  ~override/yeslickl.bmp~
      COPY ~a_portraits/bmp/yeslick/NYEM.bmp~  ~override/yeslickm.bmp~
      COPY ~a_portraits/bmp/yeslick/NYES.bmp~  ~override/yeslicks.bmp~
    END ELSE BEGIN //vanilla BG1
      COPY ~a_portraits/bmp/yeslick/NYEM.bmp~  ~override/yeslickl.bmp~
      COPY ~a_portraits/bmp/yeslick/NYES.bmp~  ~override/yeslicks.bmp~
    END
  END
END 


/* Yoshimo */
BEGIN ~Yoshimo 1 (with daggers)~ 
SUBCOMPONENT ~Yoshimo Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/yoshimo/NYOSH1L.bmp~  ~override/nyoshiml.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH1M.bmp~  ~override/nyoshimm.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH1S.bmp~  ~override/nyoshims.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/yoshimo/NYOSH1L.bmp~  ~override/nyoshiml.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH1M.bmp~  ~override/nyoshimm.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH1S.bmp~  ~override/nyoshims.bmp~
    END
  END

BEGIN ~Yoshimo 2~ 
SUBCOMPONENT ~Yoshimo Portraits~ 
REQUIRE_PREDICATE FILE_EXISTS_IN_GAME ~ar0083.are~ ~SoA is required to install this component~
    ACTION_IF FILE_EXISTS ~data/bg1are.bif~ THEN BEGIN // BGT
      COPY ~a_portraits/bmp/yoshimo/NYOSH2L.bmp~  ~override/nyoshiml.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH2M.bmp~  ~override/nyoshimm.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH2S.bmp~  ~override/nyoshims.bmp~
    END ELSE BEGIN 
    ACTION_IF FILE_EXISTS_IN_GAME ~aerie.cre~ THEN BEGIN // BG2
      COPY ~a_portraits/bmp/yoshimo/NYOSH2L.bmp~  ~override/nyoshiml.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH2M.bmp~  ~override/nyoshimm.bmp~
      COPY ~a_portraits/bmp/yoshimo/NYOSH2S.bmp~  ~override/nyoshims.bmp~
    END
  END



    