Scripts

TR_m4_TG_ElsweyrSmuggle_scp

TR_Mainland.esm
Source
1begin TR_m4_TG_ElsweyrSmuggle_scp 2 3;script for the smuggler ship from the Elsweyr Mission 4;for the TG questline 5 6;global TR_m4_TG_AndoSkoomaCat 7 8;------ 9 10if ( GetDeadCount "TR_m4_Anjirra" >= 1 ) ;nothing happens if Anjirra is dead 11 return 12endif 13 14if ( GetJournalIndex "TR_m4_TG_Shei5F" == 50 ) ;after the final delivery, Anjirra disables for good 15 if ( CellChanged == 1 ) 16 set TR_m4_TG_AndoSkoomaCat to 0 17 endif 18endif 19 20if ( "TR_m4_Anjirra".controlQ == 0 ) ;if Anjirra has no skooma (gave it to the PC) 21 if ( GetJournalIndex "TR_m4_TG_Shei5F" == 20 ) ;if Journal state is right 22 if ( CellChanged == 1 ) ;if cell is different 23 if ( TR_m4_TG_AndoSkoomaCat == 1 ) ;if Anjirra is enabled 24 set TR_m4_TG_AndoSkoomaCat to 0 ;set this to 0, so Anjirra disables 25 endif 26 endif 27 endif 28endif 29 30if ( TR_m4_TG_AndoSkoomaCat == 1 ) 31 if ( GetDisabled == 1 ) 32 enable 33 endif 34endif 35 36if ( CellChanged == 1 ) 37 if ( TR_m4_TG_AndoSkoomaCat == 0 ) 38 if ( GetDisabled == 0 ) 39 disable 40 endif 41 endif 42endif 43 44 45end