Scripts

TR_m3_LocketSmash

TR_Mainland.esm
Variables 4
Local Variables
OnPCEquip
messageOn
button
sabinedead
Source
1Begin TR_m3_LocketSmash 2 3; edited for performance -- arvisrend, 26 July 2012 4 5short OnPCEquip 6;short reset 7short messageOn 8short button 9short sabinedead 10 11if ( sabinedead == 1 ) 12 return 13endif 14 15if ( GetDeadCount "TR_m3_Sabine Valtienne" > 0 ) 16 set sabinedead to 1 17 Return 18endif 19 20;if ( OnPCEquip == 0 ) 21; Set reset to 0 22;endif 23; 24;if ( reset == 1 ) 25; Return 26;endif 27 28if ( OnPCEquip == 1 ) 29; if ( reset == 0 ) 30 Set OnPCEquip to 0 31 MessageBox "As you hold the locket, you sense an evil presence within." "Smash the locket" "Do nothing" 32 Set messageOn to 1 33 Return 34; endif 35endif 36 37if ( messageOn == 1 ) 38 set button to GetButtonPressed 39 if ( button >= 0 ) 40 Set messageOn to 0 41 endif 42 if ( button == 0 ) 43 Set "TR_m3_Sabine Valtienne".amuletDestroyed to 1 44 StartScript TR_m3_LocketRemove 45 elseif ( button == 1 ) 46; Set reset to 1 47 Return 48 endif 49endif 50 51End