Scripts

TR_m7_AI_TT_NidaraSc

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
NoLore
T_Local_NoLore
T_Local_NPC
control
controlQ
Source
1Begin TR_m7_AI_TT_NidaraSc 2 3short TR_Map 4short NoLore 5short T_Local_NoLore 6short T_Local_NPC 7short control 8short controlQ 9 10if ( TR_Map == 7 ) 11 if ( GetJournalIndex TR_m7_AI_TT_Q5 < 70 ) 12 return 13 endif 14endif 15 16if ( controlQ == 3 ) 17 return 18endif 19 20if ( GetJournalIndex TR_m7_AI_TT_Q5 >= 90 ) 21 set controlQ to 3 22 return 23endif 24 25if ( control > 0 ) 26 if ( control != 3 ) 27 if ( GetPCCell "Bessarnamidan, Upper Level" == 1 ) 28 set control to 0 29 endif 30 endif 31endif 32 33if ( controlQ == 2 ) 34 if ( GetPCCell "Bessarnamidan" == 0 ) 35 set controlQ to 1 36 AiWander 0 0 0 37 set control to 1 38 if ( control == 1 ) 39 ForceGreeting 40 if ( Player->GetItemCount TR_m7_AI_TT_Dagger > 0 ) 41 set control to 3 42 else 43 set control to 2 44 StartScript TR_m7_AI_TT_5_RepositionSc 45 endif 46 endif 47 endif 48endif 49 50if ( OnDeath == 1 ) 51 "TR_m7_Felmaru Llendu"->ModDisposition -10 52 if ( TR_m7_AI_TT_HouseSupport == 1 ) 53 set TR_m7_AI_TT_HouseSupport to 2 54 elseif ( TR_m7_AI_TT_HouseSupport == 5 ) 55 set TR_m7_AI_TT_HouseSupport to 7 56 elseif ( TR_m7_AI_TT_HouseSupport == 6 ) 57 set TR_m7_AI_TT_HouseSupport to 8 58 endif 59endif 60 61if ( TR_Map == 0 ) 62 set TR_Map to 7 63endif 64 65End