Scripting Question/problem

Post » Tue Dec 13, 2011 12:30 am

So I have finally started getting into scripting for morrowind and have run into a bit of a dead end. I want to make a crossbow that has infinite bolts that replenish after on has been shot. Here is the code as of now.

Begin glass_arrow
if ( player->GetItemCount, "BG_silver_bolt" < 2 )
Player->additem BG_silver_bolt 1
endif
End ;glass_arrow
"yes I named it arrow and not bolt, but it is a bolt"

So whenever I go in game, I can pick it up, but then I am not able to select it in the menu, and it's the same for the bold. Which spans in your menu as soon as you walk into the room, (But I can fix that with another if statement.)

I am able to equip the crossbow and bolts using the F1 hot keys, but as soon as I shoot one bolt, instead of going to the equipped bolt, it just adds one by itself in the menu.

So all I really need fixed with this is
  • The ability to equip the crossbow with out having to use the F1 hot keys
  • Having the bolts self equip automatically, but only when the bow is equipped.


Any help on this is greatly appreciated.
User avatar
Darlene DIllow
 
Posts: 3403
Joined: Fri Oct 26, 2007 5:34 am

Return to III - Morrowind