Persistane problem. Arrow count not updating with script.

Post » Mon Jun 18, 2012 1:11 pm

The script I have adds arrows too the players inventory. It uses the additem command. The arrows ARE actually being added too the players inventory.

BUT. When adding more arrows, the game does not update the number of arrows in use.

For example; I start out with 3 arrows. When I equip them, the Arrow Count on the player's screen says I have 3. This is normal. When I fire one of the arrows using the bow, the Arrow Count drops too 2. This is also normal. But, the script sees that there are only 2 arrows in the inventory and uses additem too add 1 more arrow making it 3 arrows in the inventory again. Thing is, the Arrow Count on the players screen still says there is only 2 in the inventory. I fire another arrow off. Now the Arrow Count on the player screen says there is now 1 arrow left. Thing is, once again, the script has already added another arrow too the inventory. making it 3 in the inventory.

Now lets say I go pick up those two arrows off the ground. The Arrow Count on the players screen now says I have 3 arrows, when in fact I now have 5 arrows in the inventory. Now if I were too fire off 3 arrows, the Arrow Count on the players screen would drop too 0, even though there is still 2 more arrows too be fired off. This would cause the game too switch too different arrows or say you have no arrows left... See the problem here?

Anyone have any ideas what script commands I can use too simulate the player picking up the arrows off the ground? Or at least persuade the game too update the arrow count on the players screen?

This problem has gotten quite frustrating...
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Mon Jun 18, 2012 10:11 pm

Try unequipping then re-equipping the arrows, perhaps?

Cipscis
User avatar
Dan Wright
 
Posts: 3308
Joined: Mon Jul 16, 2007 8:40 am

Post » Mon Jun 18, 2012 6:50 am

If I unequip the arrows in the inventory, manually, it fixes the error in arrow count. At least until I use the arrows again, then it's back too the same problem.

If I try doing that using the script, it does not work at all. The script refuses too operate the unequip command.
User avatar
Phillip Brunyee
 
Posts: 3510
Joined: Tue Jul 31, 2007 7:43 pm

Post » Mon Jun 18, 2012 11:56 am

In that case, perhaps try equipping a different type of arrows instead of unequipping yours - they should displace whatever arrows are equipped.

If that doesn't work, you could try http://www.creationkit.com/PlaceAtMe_-_ObjectReference and http://www.creationkit.com/Activate_-_ObjectReference to simulate the player picking up an arrow.

Cipscis
User avatar
CYCO JO-NATE
 
Posts: 3431
Joined: Fri Sep 21, 2007 12:41 pm

Post » Mon Jun 18, 2012 10:14 pm

I have come too a conclusion... Scripting weapons in Skyrim is broken. Now not only does the mod not update the arrow count, it will not even read the script. Even with a fresh install, a new character, and a brand new mod with a new script. Nothing at all...

Frustration seems too be the norm for this game it seems... Why does everything have too be broken with Skyrim? And too think, I had the same mod working in Oblivion with a fully functioning menu, several arrow choices and it worked without a hitch.
User avatar
Lilit Ager
 
Posts: 3444
Joined: Thu Nov 23, 2006 9:06 pm


Return to V - Skyrim