Scripts

TR_m1_Q59_MaI_Script_2

TR_Mainland.esm
Variables 1
Local Variables
state
Source
1Begin TR_m1_Q59_MaI_Script_2 2 3;This script enables Redram Oran's report, and detects when the report has been put in the players inventory. 4 5short state 6 7if ( state == -1 ) 8 Return 9endif 10 11if ( state == 0 ) 12 if ( GetJournalIndex "TR_m1_PT_MaI_3" < 10 ) 13 disable 14 set state to 1 15 else 16 set state to 2 17 endif 18elseif ( state == 1 ) 19 if ( GetJournalIndex "TR_m1_PT_MaI_3" >= 10 ) 20 enable 21 set state to 2 22 endif 23elseif ( state == 2 ) 24 if ( player->GetItemCount "TR_m1_Q59_MaI_Redram_Report" >= 1 ) 25 Journal "TR_m1_PT_MaI_3" 15 26 set state to -1 27 endif 28endif 29 30end