Scripts

TR_m2_q_A8_5_Shamirr_Corpse

TR_Mainland.esm
Variables 2
Local Variables
STATE
daycheck
Source
1begin TR_m2_q_A8_5_Shamirr_Corpse 2 3short STATE 4short daycheck ; set to the next 1-2 days by the dialogue results that give stages 110 or 75 or 55 5 6if ( STATE == 0 ) 7 Disable 8 Set STATE to 1 9elseif ( STATE == 1 ) 10 if ( daycheck <= DaysPassed ) 11 if ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 110 ) 12 Enable 13 set STATE to 2 14 elseif ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 75 ) ;added to match outcome of stage 110, sorcerer killed 15 Enable 16 set STATE to 2 17 elseif ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 55 ) ;added to match outcome of stage 110 18 Enable 19 set STATE to 2 20 elseif ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 111 ) ;added to match outcome of stage 110, sorcerer killed 21 Enable 22 set STATE to 2 23 endif 24 endif 25elseif ( STATE == 2 ) 26 if ( GetDistance Player < 512 ) 27 set STATE to 3 28 if ( GetJournalIndex TR_m2_A8_5_FreeAtLast == 110 ) 29 ModPCFacRep -1 "T_Mw_HouseIndoril" ;only lower reputation in case sorcerer not killed (or not reported in time) and shamirr talked to 30 TR_m2_Midave_Llarys->ModDisposition -30 31 TR_m2_Drelom_Erethan->ModDisposition -15 32 TR_m2_Thadas_Erethan->ModDisposition -15 33 endif 34 Journal TR_m2_A8_5_FreeAtLast 115 35 TR_m2_Midave_Llarys->ModDisposition -20 36 TR_m2_Drelom_Erethan->ModDisposition -10 37 TR_m2_Thadas_Erethan->ModDisposition -10 38 TR_m2_S_Eil-Leese->ModDisposition 5 39 TR_m2_S_Idhara->ModDisposition 5 40 TR_m2_S_Tanzaw->ModDisposition 5 41 TR_m2_S_Okan-Zaw->ModDisposition 5 42 endif 43endif 44 45end