Weird scripting issue

Post » Fri Jul 27, 2012 6:32 pm

I tried making a really basic script (regnerating arrows for a bow) but It doesn't want to work. I use the console to add the bow to my inventory, and I get a message saying:

"trying to runfunction index greater than function count"
"script will not run anymore"

Also, when loading a save, I got the same bug for a different mod I made (which has never had this bug before)

Here's the script, for reference:

Begin Z13_Meteoric_Bow_SCShort OnPCEquipShort EquippedIf ( OnPCEquip == 1 )set Equipped to 1player-> additem Z13_Meteoric_Ammo 1player-> equip Z13_Meteoric_ammoelseset Equipped to 0endifif ( GetItemCount Z13_Meteoric_Ammo < 1 )if ( Equipped == 1 )  player-> additem Z13_Meteoric_Ammo 1  player-> equip Z13_Meteoric_ammoendifendifend

I'm only using the Morrowind master file for this mod, no Tribunal or Bloodmoon. Anyone know the problem or how to fix it?
User avatar
Carolyne Bolt
 
Posts: 3401
Joined: Mon Jul 10, 2006 4:56 am

Return to III - Morrowind