Scripts

TR_m7_ShiShin_RavosGoran_sc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
T_Local_NPC
nolore
T_Local_NoLore
control
controlQ
Doonce
Source
1Begin TR_m7_ShiShin_RavosGoran_sc 2 3short TR_Map 4short T_Local_NPC 5short nolore 6short T_Local_NoLore 7short control ; handles Ravos follower 8short controlQ ; handles poison cure dialogue filtering 9; 0 = poisoned 1 = cured 2 = cured and accepted ring 10short Doonce 11 12; checks for cure poison spell 13if ( controlQ == 0 ) 14 if ( getEffect sEffectCurePoison == 1 ) 15 set ControlQ to 1 16 endif 17endif 18 19if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 12 ) 20 return 21endif 22 23;updates journal if both brothers die 24if ( OnDeath ) 25 if ( GetDeadCount "TR_m7_Drerayn Sedri" >= 1 ) 26 if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair >= 60 ) 27 if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 100 ) 28 Journal TR_m7_ShiSha_FamilyAffair 110 29 endif 30 endif 31 endif 32endif 33 34; updates journal when escorted to safe place (updates twice for some reason) 35if ( GetCurrentAIPackage == 3 ) 36 if ( GetJournalIndex TR_m7_ShiSha_FamilyAffair < 68 ) 37 if ( GetPCCell "Shipal-Sharai, Autrinix Residence" == 1 ) 38 AIWander 512 5 0 20 20 10 10 0 30 0 20 0 39 Journal TR_m7_ShiSha_FamilyAffair 70 40 set control to 0 41 endif 42 endif 43endif 44 45if ( TR_Map == 7 ) 46 return 47endif 48 49set TR_Map to 7 50 51End