Scripts

TR_m3_q_eecchest_scr

TR_Mainland.esm
Variables 2
Local Variables
doOnce
missing
Source
1Begin TR_m3_q_eecchest_scr 2 3short doOnce 4short missing 5 6if ( MenuMode ) 7 return 8endif 9if ( GetItemCount "TR_m4_q_Silverspoon" == 0 ) 10 set doOnce to 0 ; resets the warning for the next time the chest is opened 11 return 12endif 13 14set missing to 0 15if ( GetItemCount "T_IngMine_DiamondRed_01" == 0 ) 16 set missing to 1 17endif 18if ( GetItemCount "T_IngMine_Sapphire_01" == 0 ) 19 set missing to 1 20endif 21if ( GetItemCount "ingred_ruby_01" == 0 ) 22 set missing to 1 23endif 24if ( GetItemCount "ingred_pearl_01" == 0 ) 25 set missing to 1 26endif 27if ( GetItemCount "ingred_emerald_01" == 0 ) 28 set missing to 1 29endif 30if ( missing == 1 ) 31 if ( doOnce == 0 ) 32 set doOnce to 1 33 MessageBox "The Silverspoon lies inert. Whatever it came for is no longer in this chest." 34 endif 35 return 36endif 37 38; If all the gems are inside and you place the Silverspoon inside, the Silverspoon "steals" all the gems and vanishes to Oblivion. 39 40if ( MenuMode ) 41 return 42endif 43 44if ( GetItemCount "TR_m4_q_Silverspoon" == 0 ) 45 return 46endif 47 48if ( GetItemCount "T_IngMine_DiamondRed_01" == 0 ) 49 return 50endif 51 52if ( GetItemCount "T_IngMine_Sapphire_01" == 0 ) 53 return 54endif 55 56if ( GetItemCount "ingred_ruby_01" == 0 ) 57 return 58endif 59 60if ( GetItemCount "ingred_pearl_01" == 0 ) 61 return 62endif 63 64if ( GetItemCount "ingred_emerald_01" == 0 ) 65 return 66endif 67 68ExplodeSpell "TR_m3_q_chesteffect" 69"TR_m3_Merxia Vendicci"->Disable 70RemoveItem "TR_m4_q_Silverspoon" 1 71RemoveItem "T_IngMine_DiamondRed_01" 1 72RemoveItem "T_IngMine_Sapphire_01" 1 73RemoveItem "ingred_ruby_01" 1 74RemoveItem "ingred_pearl_01" 1 75RemoveItem "ingred_emerald_01" 1 76 77MessageBox "The Silverspoon scoops up the gems and vanishes..." 78 79Journal "TR_m3_EEC_curse" 20 80 81End