Skip to content

Has room in inventory for item or check if inventory is full

4BOLTMAIN4BOLTMAIN Member Posts: 90
edited February 2020 in Builders - Scripting
Is there any way to tell if a characters inventory is full?

Something like GetHasRoomForItem(oPC, oItem);

Comments

  • WilliamDracoWilliamDraco Member Posts: 175
    Currently possible with nwnx using: int NWNX_Object_CheckFit(object obj, int baseitem)

    Without nwnx, you'd have to do some kind of workaround where you attempt to create the item and then check whether it's still in their inventory or not. Not the most convenient of course.
Sign In or Register to comment.