First Morrowind Script Problems

Post » Thu Sep 29, 2011 8:58 am

So I try to make my first script and I end up with this my only goal was to make this script kill you if endurance is less then 100 and it won't work I've try tons of stuff can someone tell me what I'm doing wrong, please and thank you

Begin Unnamed
OnPCEquip
Short OnPCEquip
if ( OnPCEquip == 1 )
set OnPCEquip to 0
endif
; Checks for Scripted Item
if ( player->GetEndurance < 100 )
Player->Sethealth 0
messageBox, "You Have been crushed by Scripted Item"
; Kills player if endurance is less then 100
End Unnamed
User avatar
trisha punch
 
Posts: 3410
Joined: Thu Jul 13, 2006 5:38 am

Post » Thu Sep 29, 2011 10:23 am

Looks like an "endif" is missing before the last line.
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm


Return to III - Morrowind