Blackwood Company Script

Post » Sat Feb 19, 2011 10:05 am

Hey guys,

Im relatively new here and i just thought id give scripting in CS a shot. I had the idea of copy the idea from the Knights of the Nine armor script (unequip if you have infamy), and turning it into unequiping blackwood armor if you DONT have infamy. I get this error message

http://images.[censored].org/g/src/1302014636158.png

Thanks in advance
Damn... censor
Ill post the script


scn NDBlackwoodBootsSCRIPT

ref tempRef

begin OnEquip player
if getPCInfamy > 1
set tempRef to GetContainer
tempRef.unequipitem BlackwoodBoots
end


and the error is


Script 'NDBlackwoodBootsSCRIPT', line 6:
Mismatched if/else/endif block starting on line 6
User avatar
P PoLlo
 
Posts: 3408
Joined: Wed Oct 31, 2007 10:05 am

Post » Sat Feb 19, 2011 5:14 am

The message means that your "if" doesn't have a matching "endif". Add it on a separate line before the "end" one.
User avatar
Elizabeth Lysons
 
Posts: 3474
Joined: Fri Feb 02, 2007 7:16 am

Post » Fri Feb 18, 2011 10:16 pm

Ok i've managed to be able to save it, but when i try save it as a plugin and exit, CS crashes and the data files section on startup says it is an invalid file. Help?
User avatar
Tracy Byworth
 
Posts: 3403
Joined: Sun Jul 02, 2006 10:09 pm


Return to IV - Oblivion