Scripts

TR_m4_Ando_NevusaBarrelScript

TR_Mainland.esm
Variables 2
Local Variables
doonce
control
Source
1Begin TR_m4_Ando_NevusaBarrelScript 2 3; Script checking the content of the barrel outside Nevusa's shop 4 5short doonce 6short control 7 8if ( MenuMode ) 9 return 10endif 11 12if ( OnActivate ) 13 set control to 1 14 15 if ( GetJournalIndex "TR_m4_And_Alchemists_3" >= 95 ) 16 if ( doonce == 0 ) 17 RemoveItem "TR_m4_Ando_NevusaLetter" 1 18 RemoveItem "Gold_001" 400 19 set doonce to 1 20 endif 21 endif 22 23 Activate 24 return 25endif 26 27if ( control == 1 ) 28 set control to 0 29 30 if ( GetJournalIndex "TR_m4_And_Alchemists_3" < 70 ) 31 return 32 elseif ( GetJournalIndex "TR_m4_And_Alchemists_3" >= 95 ) 33 return 34 elseif ( GetJournalIndex "TR_m4_And_Alchemists_4" >= 50 ) 35 return 36 elseif ( GetJournalIndex "TR_m4_And_Alchemists_5" >= 100 ) 37 return 38 endif 39 40 if ( GetItemCount "TR_m4_Ando_NevusaLetter" < 1 ) 41 Set TR_m4_Ando_NevusaDeskState to 0 42 elseif ( GetItemCount "Gold_001" != 400 ) 43 Set TR_m4_Ando_NevusaDeskState to 0 44 else 45 Set TR_m4_Ando_NevusaDeskState to 1 46 if ( GetJournalIndex "TR_m4_And_Alchemists_3" < 76 ) 47 Journal "TR_m4_And_Alchemists_3" 76 48 endif 49 endif 50endif 51 52End