Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

[HACK] Auto-Identify without scrolls or spells

Mr2150Mr2150 Member Posts: 1,170
edited September 2016 in UI Modding
Fed up wasting those spell slots, or stumping up cash to get your stuff identified?


Here's a very simple UI.menu hack...

Search for:

Infinity_PushMenu('ITEM_IDENTIFY',0,0)

You'll find it in the itemDescLeftButtonAction() function.

Just replace that line with:

Infinity_OnSpellIdentify(characters[id].equipment[selectedSlot].id); itemDesc.item = characters[id].equipment[selectedSlot].item --update itemDesc item

and voila!
Now when you right-click to view the item description - just click identify to identify it.

EDIT:

If you feel that's too much like cheating then replace that line with these instead:
costGold = 50 if characters[id].gold >= costGold then C:AddGold(-costGold) Infinity_OnSpellIdentify(characters[id].equipment[selectedSlot].id); itemDesc.item = characters[id].equipment[selectedSlot].item --update itemDesc item else Infinity_PlaySound('GAM_47') end
You can change the line 'costGold = 50' to however much you want to pay and it will check that you have that much and make an error noise if you don't have enough.
Now you are 'paying' for the service of identifying, you just don't need to go somewhere special to perform it :)


Post edited by Mr2150 on
lefreutLoldrup

Comments

Sign In or Register to comment.