Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Aug 2014
P
Platuni Offline OP
stranger
OP Offline
stranger
P
Joined: Aug 2014
How can I get a character to equip a piece of armor?

Adding an item template to a character does only add the item to their inventory.

Joined: Jul 2014
Location: Finland
journeyman
Offline
journeyman
Joined: Jul 2014
Location: Finland
I have never done that but I would try something like this

IF GlobalEventSet("EquipItem")
AND ItemGetHandle(ITEM_MyItem, _Handle)
THEN CharacterEquipItemhandle(CHARACTER_MyNPC, _Handle);

Or,

PROC MyEquipItem((ITEM)_Item, (CHARACTER)_Char)
AND ItemGetHandle(_Item, _Handle)
THEN CharacterEquipItemhandle(_Char, _Handle);

Is the character a player or NPC ?
If NPC then, does it wear the same armor all the time or does it need to change the gear ?

Joined: Aug 2014
P
Platuni Offline OP
stranger
OP Offline
stranger
P
Joined: Aug 2014
I will try that, thanks! smile


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5