Scripts

TR_m7_ErnestCergelle_sc

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
doonce
NoLore
disp
state
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m7_ErnestCergelle_sc 2 3short TR_Map 4short control 5short controlQ 6short doonce 7short NoLore 8short disp 9short state 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( ondeath == 1 ) 14 if ( getjournalindex "TR_m7_hl_ProvingFaith" > 0 ) 15 if ( getjournalindex "TR_m7_hl_provingfaith" < 100 ) 16 journal "TR_m7_hl_ProvingFaith" 120 17 endif 18 endif 19endif 20 21if ( doonce == 0 ) 22 if ( "TR_m7_Ernest Cergelle_T"->GetDisabled == 0 ) 23 "TR_m7_Ernest Cergelle_T"->disable 24 set doonce to 1 25 endif 26elseif ( doonce == 1 ) 27 if ( GetJournalIndex "TR_m7_hl_ProvingFaith" >= 110 ) 28 if ( GetJournalIndex "TR_m7_hl_ProvingFaith" <= 115 ) 29 if ( CellChanged ) 30 set disp to GetDisposition 31 "TR_m7_Ernest Cergelle_T"->SetDisposition disp 32 "TR_m7_Ernest Cergelle_T"->Enable 33 disable 34 set doonce to 2 35 endif 36 endif 37 endif 38endif 39 40if ( OnActivate ) 41 if ( state == 1 ) 42 MessageBox "This character is busy." 43 else 44 Activate 45 endif 46endif 47 48if ( TR_Map != 7 ) 49 set TR_Map to 7 50endif 51 52end