Scripts

TR_m1_Q59_LiT_Scroll_sc

TR_Mainland.esm
Variables 1
Local Variables
state
Source
1Begin TR_m1_Q59_LiT_Scroll_sc 2 3;This script is for the Port Telvannis misc quest 'Lost in Translation' 4;It is placed on the recall scroll which Ghernn Rithrin wants you to find. 5;It makes the scroll appear when the quest starts, gives the appropriate 6;journal entry when found, and replaces itself with a normal recall scroll 7;when picked up 8 9short state 10 11if ( menumode ) 12 return 13endif 14 15if ( GetJournalIndex "TR_m1_PT_Translation" < 10 ) ;before quest starts 16 if ( GetDisabled == 0 ) ;keep disabled 17 disable 18 endif 19elseif ( GetJournalIndex "TR_m1_PT_Translation" >= 100 ) ;if quest complete 20 if ( GetDisabled == 0 ) 21 disable ;disable 22 else 23 SetDelete, 1 ;then delete 24 return 25 endif 26elseif ( GetDisabled ) 27 enable ;enable when quest in progress 28endif 29 30if ( state == 0 ) 31 if ( OnActivate ) ;if activated 32 Journal "TR_m1_PT_Translation" 20 ;update journal 33 Activate ;open as usual 34 Set state to 1 ;and toggle to check if picked up 35 endif 36elseif ( state == 1 ) 37 if ( player->GetItemCount "TR_m1_Q59_LiT_sc_ls" > 0 ) ;if picked up 38 set state to 2 ;toggle to replace 39 endif 40elseif ( state == 2 ) 41 StartScript "TR_m1_Q59_LiT_Global" ;this replaces the scroll 42 set state to 3 43endif 44 45End