NPC functions (zPE)
NPC related functions.
Npc_SetAsHero
Npc_SetAsHero
Changes players character to specified npc
- npc- NPC to be set as players character
Npc_OpenInventory
Npc_OpenInventory
Opens NPCs main inventory
- npc- NPC
Npc_OpenInventorySteal
Npc_OpenInventorySteal
Opens the steal inventory of npc's focus NPC
- npc- NPC
Npc_OpenInventoryTrade
Npc_OpenInventoryTrade
Start the trading dialogue with specified NPC
- npc- NPC
Npc_GetLeftHandItem
Npc_GetLeftHandItem
Returns an item in NPC's left hand slot
- npc- npc to be affected
- return- found C_ITEM instance
Npc_GetRightHandItem
Npc_GetRightHandItem
Returns an item in NPC's right hand slot
- npc- npc to be affected
- return- found C_ITEM instance
Npc_GetSlotItem
Npc_GetSlotItem
Returns an item from a slot with the slotName
- npc- npc to be affected
- slotName- name of the slot
- return- found C_ITEM instance
Npc_PutInSlot
Npc_PutInSlot
Places an instance of the oCVom class (including items and NPCs) object into the slotName of the NPC The copyInInv parameter determines whether a copy of the object should remain in the character's inventory
- npc- npc to remove the item from
- slotName- name of the slot from which to remove the item
- object- object to be inserted into the slot
- copyInInv- should a copy of the object stay in character inventory
Npc_RemoveFromSlot
Npc_RemoveFromSlot
Removes an object from the slotName of the NPC. The dropIt parameter in Gothic 2 defines, whether object should drop out of the slot. In Gothic 1, this parameter is reserved and must be 0.
- npc- npc to remove the item from
- slotName- name of the slot from which to remove the item
- dropIt- should the object be dropped