Scripts

TR_m1_q50_GO6_gamarth_scpt

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
NoLore
control
state
doonce
speakOnce
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m1_q50_GO6_gamarth_scpt 2 3short TR_Map 4short NoLore 5short control 6short state 7float timer 8short doonce 9short speakOnce 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( MenuMode ) 14 Return 15elseif ( state == -1 ) 16 Return 17endif 18 19if ( control == 10 ) 20 if ( CellChanged ) 21 Disable 22 set control to 11 23 endif 24 return 25elseif ( control == 11 ) 26 if ( timer > 3 ) 27 SetDelete 1 28 Return 29 endif 30 set timer to ( timer + GetSecondsPassed ) 31 Return 32endif 33 34if ( GetJournalIndex TR_m1_GO_6 < 100 ) 35 if ( control == 2 ) 36 if ( speakOnce == 0 ) 37 set speakOnce to 1 38 ForceGreeting 39 endif 40 elseif ( control == 4 ) 41 if ( speakOnce == 1 ) 42 set speakOnce to 2 43 ForceGreeting 44 endif 45 endif 46endif 47 48if ( doonce == 0 ) 49 if ( player->GetLevel < 12 ) 50 Disable 51 endif 52 set doonce to 1 53 return 54elseif ( doonce == 1 ) 55 if ( player->GetLevel >= 12 ) 56 if ( GetDisabled ) 57 Enable 58 endif 59 set doonce to -1 60 endif 61endif 62 63if ( state == 0 ) 64 set TR_Map to 1 65 set state to 1 66 return 67elseif ( state == 1 ) 68 if ( GetJournalIndex TR_m1_GO_6 == 20 ) 69 set control to 1 70 set state to 2 71 endif 72 return 73elseif ( state == 2 ) 74 if ( OnDeath ) 75 Journal TR_m1_GO_6 120 76 set state to -1 77 endif 78 if ( GetDeadCount TR_m1_Lervan_Arethi >= 1 ) 79 if ( GetDeadCount TR_m1_Medvu_Indul >= 1 ) 80 if ( GetDistance TR_m1_Q50_GO6_Marker < 512 ) 81 set control to 5 82 ForceGreeting 83 set state to 3 84 endif 85 endif 86 endif 87 if ( timer > 300 ) 88 set control to ( control + 1 ) 89 set timer to 0 90 endif 91 set timer to ( timer + GetSecondsPassed ) 92endif 93 94End