Skip to content

[Scripting] Unequip item

SpiteSpite Member Posts: 18
edited March 2018 in BGII:EE Mods
I'm playing around a bit with ai scripts for characters, since I haven't tried it for well over ten years. I'm stuck trying to find a way for a character to unequip items on certain conditions but I'm not finding a good, reliable way to get it to work. Is it even possible at all or is there any workaround?

I managed to equip with 'FillSlot(I:Slot*SLOTS)' (even if unreliable) but whatever I try I can't manage to get them to take of an item.

Comments

  • SpiteSpite Member Posts: 18
    I managed to work it out. A simple TakePartyItem(S:Item*) did the trick if anyone else might run into the same problem.
    If anyone have a another way except using FillSlot, since it removes items already in the slot, help would be apreciated .
Sign In or Register to comment.