Jump to content

How to modify item pickup sound?


dbianco87

Recommended Posts

Posted (edited)

Under the itm file format article on iesdp(ss below) I see a value for pickup sound, but it doesn't seem to be listed in NearInfinity from what I can see, so I don't know how to change it.  I am working on a custom item that is similar in function to a potion, so I made it by modding a potion and giving it new icons and effects.  This was a quick way to make the item, however it makes the potion sound effect when you move it about in inventory, which doesn't quite fit so I'd like to change it.

 

I am also using weidu so if there's a line I could simply add to the installer to do this that would work fine as well.

Thanks as always to those who give their time and energy answering questions like this.  This is one of my favorite online communities I think for good reason.


 

0x0054

4 (strref) Identified Description (strref)
0x0058 8 (resref) Pickup sound - played when the item is picked up in the inventory (WAV)
0x0060 4 (dword) Enchantment
Edited by dbianco87
Posted

As that page states, that field is unique to the format version used in PST. In other games it is hardcoded to the item type / category.

Posted

You can find the item type/category in itemtype.2da(BG2EE, BGEE, IWDEE) which also contains the names of sound files that this item category/type will use.

So basically you could create a new item type/category, but that's not that easy for quick slot items, see next part.

I ran some tests, which you can find here, with the results of which slots perform what behavior (the tests were done with a weapon item).

The quick item slots do not appear to be working with the exception of slot 15, and works only if the item has an item ability(If you somehow manage to get them all working, please get in touch).

Posted
2 hours ago, lynx said:

As that page states, that field is unique to the format version used in PST. In other games it is hardcoded to the item type / category.

Thanks, I see now.  I think for now tagging my item as food instead of potion is workable.  Doesn't seem to have impacted the item's performance and the sound is good enough for now.

Posted
1 hour ago, Incrementis said:

You can find the item type/category in itemtype.2da(BG2EE, BGEE, IWDEE) which also contains the names of sound files that this item category/type will use.

So basically you could create a new item type/category, but that's not that easy for quick slot items, see next part.

I ran some tests, which you can find here, with the results of which slots perform what behavior (the tests were done with a weapon item).

The quick item slots do not appear to be working with the exception of slot 15, and works only if the item has an item ability(If you somehow manage to get them all working, please get in touch).

Thanks for sharing.  For now I think I'll stick to existing categories for the sake of simplicity, but I'll look into this.  I do think my mod could benefit from a few unique sound effects.

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...