Scripts

TR_m2_He_M_TemisScript

TR_Mainland.esm
Variables 2
Local Variables
state
doonce
Source
1Begin TR_m2_He_M_TemisScript 2 3short state 4short doonce 5 6if ( "TR_m2_Temis Lorthus"->OnDeath == 1 ) 7 if ( GetJournalIndex TR_m2_He_M_SeekingFriend >= 10 ) 8 Journal TR_m2_He_M_SeekingFriend 300 9 endif 10endif 11 12if ( state == 0 ) 13 Disable 14 set state to 1 15endif 16 17 18if ( CellChanged == 1 ) 19 if ( state == 1 ) 20 if ( GetJournalIndex TR_m2_He_M_SeekingFriend == 100 ) 21 Enable 22 "TR_m2_Temis Lorthus"->Disable 23 set state to 2 24 elseif ( GetJournalIndex TR_m2_He_M_SeekingFriend == 150 ) 25 "TR_m2_Temis Lorthus"->Disable 26 set state to 2 27 elseif ( GetJournalIndex TR_m2_He_M_SeekingFriend == 200 ) 28 Enable 29 "TR_m2_Temis Lorthus"->Disable 30 set state to 2 31 endif 32 elseif ( state == 3 ) 33 if ( GetDisabled == 0 ) 34 Disable 35 endif 36 set state to 2 37 endif 38endif 39 40if ( doonce == 0 ) 41 if ( OnActivate == 1 ) 42 Journal TR_m2_He_M_SeekingFriend 300 43 Activate 44 set doonce to 1 45 endif 46endif 47 48End