Scripts

TR_m3_Aar_Script_Spear

TR_Mainland.esm
Variables 1
Local Variables
DoOnce
Source
1Begin TR_m3_Aar_Script_Spear 2 3short DoOnce 4 5if ( DoOnce == 3 ) 6 Return 7endif 8 9if ( DoOnce == 2 ) 10 Player->Additem "ebony spear" 1 11 set DoOnce to 3 12 Disable 13 Return 14endif 15 16if ( OnActivate == 1 ) 17 if ( Player->GetStrength > 129 ) 18 if ( DoOnce == 0 ) 19 Messagebox "You pull with all your might on the shaft of the ebony spear. It moves a little..." 20 PlaySound3D "Door Stone Open" 21 Player->ModCurrentFatigue -50 22 Set DoOnce to 1 23 else 24 Messagebox "Once again you pull on the shaft of the ebony spear with all your might. This time it slowly scrapes out from under the huge stones and comes free." 25 PlaySound3D "Door Stone Open" 26 Player->ModCurrentFatigue -50 27 Set DoOnce to 2 28 endif 29 else 30 Messagebox "You pull with all your might on the shaft of the ebony spear, but you simply lack the strength to move it." 31 Player->ModCurrentFatigue -50 32 endif 33endif 34 35end