Are the character-specific items meant to override Use Any Item?
Eudaemonium
Member Posts: 3,199
Hey all,
Basically, I heard they added a new opcode that meant they could actually restrict items to specific characters. Like Valygar's Corthala Family Armour is now only usable by Valygar, Keldorn's Firecam Plate by Keldorn, etc. I just noticed on my Fighter-Thief that this new opcode overrides the Thief's Use Any Item ability. While the items no longer appear 'reddened' and thus appear ostensibly usable, you cannot equip them.
Basically, I'm asking if this is intentional behaviour? If it is intentional behaviour, how do I mod it so it isn't anymore?
Basically, I heard they added a new opcode that meant they could actually restrict items to specific characters. Like Valygar's Corthala Family Armour is now only usable by Valygar, Keldorn's Firecam Plate by Keldorn, etc. I just noticed on my Fighter-Thief that this new opcode overrides the Thief's Use Any Item ability. While the items no longer appear 'reddened' and thus appear ostensibly usable, you cannot equip them.
Basically, I'm asking if this is intentional behaviour? If it is intentional behaviour, how do I mod it so it isn't anymore?
1
Comments
sorry first time i heard about this
There is an existing opcode, 180 = Can't Use Item, which also may or may not work with UAI. I don't recall anything using it before so maybe is was broken before BG2EE.
It's not "Use Any Item except for the one's we want to arbitrarily tie to one individual NPC amongst the millions of NPCs found in the game"
Why isn't Longtooth Dagger (or whatever) only usable by Lord Peter Cornelius Longtooth then? Why isn't Shadow Dragon Armor only usable by a Shadow Dragon?
Now...the next part is new. Go to Near Infinity and find item_use.2da. Delete the line item listing for npchan, which also restricts the armor to being used by Valygar only, and save.
At this point in my test, my quickly-built ranger was still unable to use the armor--check the minimum stat flags and I noticed that his dexterity was not high enough.
Corrected that but he still couldn't use the armor. Some other hard coding restriction? *shrug*
I applied the "use any item" to my ranger, though, and now he is wearing the armor.
It was more work than I anticipated but I had never done that before.
update: I thought maybe some steps could be removed and I was correct. You need only remove the 319 opcode from the item, you don't have to worry about item_use.2da at all. I just tested this and a character with UAI can use the item. Well, in this case my test ranger couldn't because he isn't dextrous enough but that is the only restriction now.
So...remove opcode 319 and UAI should work perfectly.
Second question: Yes, it can be modded to allow anyone to use the armour. If there are enough people who want the armour (or other NPC items) made available, then I can mod the whole lot in one go and upload them.
i really hope they will not touch that..or would be totally stupid (totally nerfing UAI for thieves/bards).
Now..i could test a little that bug with an old BG2 save full of nice items..
i can confirm my old bard blade with UIA can't use Keldorn/Valygar armor (at first, say stats are not the same dex, con or cha.. but later, even after a EEKeeper modification to match the minimal stats of Keldorn/Valyfar..just say 'not compatible'^) , etc....especially the Valygar one was apparently nice for him att hat time, 'cause that's the one he was wearing on that save..but no more working now..
I can confirm, on the other hand, he can always perfectly use items like Helm of Balduran (very useful for him even then), Gauntlets of Extraordinary Specialization (mainly for fighters apparently - +1/2ATT, etc, extremely useful..even better than the bards special wondrous gloves..that have no +1/2ATT..), Carsomyr (LG paladin only - though pointless on him, dualH mainly..), Scarlet Ninja-to (monk only - always useful +1ATT +3 scimetar..with Crom Faeyr in the other hand^), etc.
On the other hand... can't use either Valygar blade (Valygar only too..), other NPCs special weapons (Haer'Dalis, etc), etc... now, Mazzys weapons (Arvoreen bow/short sword - halflings only normally) seem to be ok...
i just don't get the limitation on those NPCs armors/weapons though (was OK in original BG2 too.. of course).. makes no sense..especially on the weapons (a bow is a bow, a sword is a sword..though of course, those ones becomes clearly obsolete at the end of SoA and in ToB.. but yet).
Would be even dumber to extend the limitation of UAI on other items though.. as such, seems more like a bug than anything else anyway.. another one so.. (sigh) ....
a mod like that would be greatly appreciated
ps;
@Eudaemonium well.. high levels Valygar seems to be a great 2handed dude actually/.. in my old save, looked pretty bad ass with Celestial fury & i don't know what..plus insect plague spells possible too, etc.. plus stealth/backstabsx7 with np/etc.. looked good..even with another armor..*/^^
Also: backstabx7? i think you mean x3.
From a technical and game-playing point of view, this was merely an exercise to discover why UAI doesn't work like it used to and now we know--opcode 319.
*Can* you get the NPC equipment for yourself? Yes, easily. *Should* you get the NPC equipment for yourself? *shrug* That is entirely up to the individual player.
That is the original developers, not Beamdog. They also wanted the game to be saveable while enraged or under Spirit Armour, but beamdog thought it better to prevent you from saving for two hours because you might die from a little tiny damage.