For your consideration: icon changer

Suggestions Should Be Posted in Their Respective Categories

Moderators: Moderator, Developer, DM

Post Reply
User avatar
khaevil
Posts: 136
Joined: Thu Sep 03, 2009 7:00 pm
Location: East Coast USA

For your consideration: icon changer

Unread post by khaevil »

I'd like to be able to change the icons on some items. Specifically wands, it's annoying that all the player-crafted wands look the same.

I wrote a script and a widget to do just that. And I threw in the ability to change the icon on potions, rods, books, armor, weapons and ammunition just because.

https://neverwintervault.org/project/nw ... on-changer
Kurvallaxion Brax - Knight of the Baldur's Gate Thayan Enclave
User avatar
Valefort
Retired Admin
Posts: 9779
Joined: Thu Apr 28, 2011 5:07 pm
Location: France, GMT +2

Re: For your consideration: icon changer

Unread post by Valefort »

A good idea, it won't have access to all the icons we've got because ... the nwn2_icons.2da is one big mess that lacks a ton of entries but it should be able to do its job with those existing ones regardless.

After looking at it : it was a courageous way of doing it, I wouldn't even have considered going through these items one by one :lol:

It will be accessed through the appearance changer kit, as another dialog option.
Mealir Ostirel - Incorrigible swashbuckler
User avatar
Glowfire
Posts: 1813
Joined: Thu Jul 28, 2016 9:14 am

Re: For your consideration: icon changer

Unread post by Glowfire »

This is amazing! I have a page full of wands and try some kind of memorization on the hotbar where I place them next to colourful potions but I still forget what is what...

I'm hoping we'll see this in the game soon! Thank you khaevil for working on it.
Power is the most persuasive rhetoric.
Friedrich von Schiller
User avatar
khaevil
Posts: 136
Joined: Thu Sep 03, 2009 7:00 pm
Location: East Coast USA

Re: For your consideration: icon changer

Unread post by khaevil »

In order to easily implement as part of the appearance changer, I made a conversation-based version. It's available at the same link.

It will attempt to change the icon of the first item in the players inventory. It will also copy the item and destroy the original each time, to update the icon. This does mean the item will jump around between two inventory slots.

Included sample widget and conversation that can be copied for the appearance changer conversation.
Sample conversation allows going forwards or backwards, one or five at a time.

A bit of a caveat:
In order to prevent firing of item acquire scripts and stacking of items when creating and destroying objects to change the icon, it sets a temporary item tag and maximum stack size.
There is a script that needs to fire when the conversation is closed, to restore the tag and stack size. This will need to be modified a bit to be integrated with the current appearance changer.


The script has been modified to use an empty wine bottle as the demonstration icon. The stack size of the target item is set to 1 to prevent a possible exploit, so canceling the script without using the conversation's cancel option will now result in losing all but 1 of a stacked item (unless the devs are nice enough to add some conversation canceled code preventing this).

The player will need two open inventory slots to view the demonstration icon. Otherwise the item that is supposed to show the currently selected icon will end up on the ground.
Kurvallaxion Brax - Knight of the Baldur's Gate Thayan Enclave
Post Reply

Return to “Suggestions and Discussion”