WTF is wrong with silver swords

Post » Thu Jun 21, 2012 3:55 pm

first they break, in the vanlla game permanently because the event block OnEquipped will never fire when using hotkeys/favorites, thus never adding/removing the silver undead bonus perk properly.



and now i found a new bug with this weapon, if you are using a weapon rack system that counts items placed, and removes them using integer properties, the system will be thrown out of sync.

on my weapon rack script, i have a integer that += 1 when a weapon is added, and -= 1 when it is removed. on any other weapon, adding a batched number with an aiCount higher than 2 will fire the OnItemAdded and OnItemRemoved correctly, adding +=1 and removing -=1 regardless of the aiCount.


for some unexplained reason, Silver swords will fire the OnItemAdded, then OnitemRemoved multiple times until the inventory is depleted or 1 remaining. wtf? why only this weapon? any other weapon will remove the same number you added at once, but silver swords remove multiple times in increments (causing more OnItemRemoved events than OnItemAdded)

why the hell would this happen?


if you dont believe me try it yourself. create a container that has the OnItemAdded blocks set up so they add a += 1 on added and -= 1 on removed. and a forced remove if the aiCount is higher than 1.





edit: i fixed the issue by changing +/- 1 to +/- aiItemCount, but still i want to know why the silver sword cant give back all of its aiCount in one shot
User avatar
Astargoth Rockin' Design
 
Posts: 3450
Joined: Mon Apr 02, 2007 2:51 pm

Return to V - Skyrim