Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jan 2010
Location: USA
F
enthusiast
OP Offline
enthusiast
F
Joined: Jan 2010
Location: USA
I need to count items with a specific tag in magic pockets. Is there a way to do that?

Joined: Jun 2013
addict
Offline
addict
Joined: Jun 2013
Did you try
ItemTagIsInCharacterInventory ? You need the character, the tag, and it returns the number of item.


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Jan 2010
Location: USA
F
enthusiast
OP Offline
enthusiast
F
Joined: Jan 2010
Location: USA
Thanks! Where'd you find that function? I searched all the scripts and didn't see anything like it.

Joined: Jun 2013
addict
Offline
addict
Joined: Jun 2013
It is in osiris.
When you are in osiris, just type the word you are searching, and ctrl space will sort you all apis related to this word.

Last edited by Cromcrom; 22/10/17 06:31 AM.

Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
You can also look at the full list of Osiris APIs, which gets generated after you used "generate definitions" for the first time in the story editor.

Joined: Jan 2010
Location: USA
F
enthusiast
OP Offline
enthusiast
F
Joined: Jan 2010
Location: USA
Originally Posted by Cromcrom
It is in osiris.
When you are in osiris, just type the word you are searching, and ctrl space will sort you all apis related to this word.

Totally forgot about that. Thanks.

Originally Posted by Tinkerer
You can also look at the full list of Osiris APIs, which gets generated after you used "generate definitions" for the first time in the story editor.

I'm aware of that list, but the last time I tried a few out, the editor didn't recognize them. ContainerIdentifyAll, for example.

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
I just tried using ContainerIdentifyAll() and it compiled fine for me. Did you specify an item as its parameter?

Joined: Jan 2010
Location: USA
F
enthusiast
OP Offline
enthusiast
F
Joined: Jan 2010
Location: USA
Originally Posted by Tinkerer
I just tried using ContainerIdentifyAll() and it compiled fine for me. Did you specify an item as its parameter?

I was trying to use the function in game/item/charScripts.

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
The functions in the story header are only available to Osiris. The functions available in behaviour script are listed here.


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