Scripts

TR_m7_Ocrulun_scr

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
DoOnce
Source
1Begin TR_m7_Ocrulun_scr 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9short DoOnce 10 11if ( controlQ < 1 ) 12if ( CellChanged == 0 ) 13 if ( GetSoundPlaying "Flies" == 0 ) 14 PlayLoopSound3DVP "Flies" 0.5 1.0 15 endif 16endif 17endif 18 19if ( GetJournalIndex TR_m7_Sdr_TheStinkCurse >= 10 ) 20 if ( GetJournalIndex TR_m7_Sdr_TheStinkCurse < 50 ) 21 if ( OnDeath == 1 ) 22 if ( GetDistance Player <= 300 ) 23 journal TR_m7_Sdr_TheStinkCurse 90 24 endif 25 endif 26 endif 27elseif ( DoOnce == 0 ) 28 if ( GetDeadCount "TR_m3_q_Bazark" > 0 ) 29 set controlQ to 1 30 set DoOnce to 1 31 endif 32endif 33 34if ( controlQ == 1 ) 35 AiTravel 69609 -363631 -124 ; TR_m7_MARK_Sdr_Ocrulun 36 set controlQ to 2 37endif 38 39if ( controlQ == 2 ) 40 removeitem common_pants_03 1 41 removeitem T_De_Cm_Shoes_03 1 42 removeitem T_De_Cm_Shirt_07 1 43 removeitem torch 1 44 set controlQ to 3 45endif 46 47if ( controlQ == 3 ) 48 set control to DaysPassed 49 set controlQ to 4 50endif 51 52if ( controlQ == 4 ) 53 if ( control < DaysPassed ) 54 StartScript TR_m7_q_Ocrulun_teleport_sc 55 set controlQ to 5 56 set T_Local_NoLore to 1 57 endif 58endif 59 60if ( TR_Map ) 61 return 62endif 63 64set TR_Map to 7 65 66End