[HACK] Auto-Identify without scrolls or spells
![Mr2150](https://forums.beamdog.com/uploads/userpics/024/nAVWO8PJNLWZL.jpg)
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:
You'll find it in the itemDescLeftButtonAction() function.
Just replace that line with:
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:
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![:) :)](https://forums.beamdog.com/resources/emoji/smile.png)
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
![:) :)](https://forums.beamdog.com/resources/emoji/smile.png)
Post edited by Mr2150 on
2
Comments
include?
EDIT - I just updated the code so you can choose how much each identify is worth when you first edit the UI.menu