Neverwinter Nights: Enhanced Edition

Neverwinter Nights: Enhanced Edition

Adventures await!
Gather your mods before venturing forth. Discover planes filled with player-created adventures in Steam Workshop, then build your own Neverwinter Nights modules using the Aurora Toolset to share!
Learn More
How to equip a creature weapon on a PC?
Is this possible? ActionEquipItem() doesn't seem to work for this. I'm guessing PCs just don't have creature item slots?
< >
Showing 1-8 of 8 comments
Proleric 5 9 Mar, 2019 @ 1:29am 
They do have creature item slots, but lack the feat necessary to equip creature weapons.

It should work if you give the creature item the property Bonus Feat - Weapon Proficiency (creature).

Alternatively, add FEAT_WEAPON_PROFICIENCY_CREATURE to the PC by script before equipping the item.
Thanks for the response. The PC does have WeapProfCreature (feat 289) but it still doesn't work.
Internet Cafe (Banned) 9 Mar, 2019 @ 3:04pm 
The action queue has a mind of it's own in this game you should ask him how to use the Leto program to edit your character file and give it what you want.
Proleric 5 9 Mar, 2019 @ 3:24pm 
Not sure what the problem is, but Leto probably wouldn't help, because even pre-equipped items go through the OnPlayerEquipItem event when the game starts.

Exactly which weapon is being equipped? Can we see the relevant part of the script?
I've tried some claw weapons, e.g.:

oClaw1 = CreateItemOnObject("nw_it_crewpsp026", OBJECT_SELF);
oClaw2 = CreateItemOnObject("nw_it_crewpsp026", OBJECT_SELF);
ActionEquipItem(oClaw1, INVENTORY_SLOT_CWEAPON_R);
ActionEquipItem(oClaw2, INVENTORY_SLOT_CWEAPON_L);

Hopefully I'm just doing something wrong.
Proleric 5 10 Mar, 2019 @ 1:01am 
What object is running this script? Which event?

Unless OBJECT_SELF is the PC, it will fail.

If that's not the problem, try using GetHasFeat to check that the PC actually has feat 289 at the time of execution.

You might also try ClearAllActions() before the first ActionEquipItem().
Last edited by Proleric; 10 Mar, 2019 @ 1:13am
Proleric 5 10 Mar, 2019 @ 1:11am 
I found a post on NWN Omnibus that confirms that what you are trying to do is possible. They used Leto to enable the feat (as it happens) then equipped the items by script. The PC could then be exported into other modules with the creature weapons intact.
Ah, the problem turns out to be something else rather than with what I was doing specifically. The script was trying to assign creature weapons based on the creature's appearance, but for some reason this wasn't working. Once I removed those clauses from the script, it works. I also did implement ClearAllActions() just in case. Thanks for the help.
< >
Showing 1-8 of 8 comments
Per page: 1530 50