Scripts

TR_m3_OE_q_kwamasmug_scr

TR_Mainland.esm
Variables 3
Local Variables
OnPCEquip
PCSkipEquip
control
Source
1begin TR_m3_OE_q_kwamasmug_scr 2 3; Script on ingredient TR_m3_q_kwamasmuggle for quest 4; TR_m3_EEC_excise. 5 6short OnPCEquip 7short PCSkipEquip 8short control 9 10set PCSkipEquip to 0 11 12if ( control ) 13 ; allegedly, you want to wait a frame after disabling before deleting 14 SetDelete 1 15 return 16endif 17 18if ( MenuMode ) 19 set PCSkipEquip to 1 20 if ( OnPCEquip ) 21 MessageBox "An ornate Dwemer goblet falls out of the egg." 22 "Player"->StartScript "TR_m3_OE_q_kwamaremove_scr" 23 "Player"->AddItem "misc_dwrv_goblet10" 1 24 if ( GetJournalIndex, "TR_m3_EEC_Excise_dwe" < 10 ) 25 AddTopic "Dwemer goblet" 26 Journal TR_m3_EEC_excise_dwe 10 27 endif 28 set OnPCEquip to 0 29 set PCSkipEquip to 0 30 endif 31 return 32endif 33 34if ( OnActivate ) 35 MessageBox "An ornate Dwemer goblet falls out of the egg." 36 Disable 37 PlaceAtMe "misc_dwrv_goblet10" 1 0 0 38 set control to 1 39 if ( GetJournalIndex, "TR_m3_EEC_Excise_dwe" < 10 ) 40 AddTopic "Dwemer goblet" 41 Journal TR_m3_EEC_excise_dwe 10 42 endif 43endif 44 45end