Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
Specifically I'm trying to get this one to work and not having any luck.

ACTION RemoveItemTemplates(ItemTemplateNameGuid,Amount,SpeakerIndex)

I know what the NameGUID is, and amount seems fairly obvious. But how should SpeakerIndex be entered? Simply 1,2,3,4? String or integer? Or is it the speaker index fully typed out like "Player1"?

I do have speakers assigned and all that.

Previously I've been flagging all this stuff and creating a matching call in the story editor but that's tedious.



Last edited by SniperHF; 19/03/15 01:53 AM.
Joined: Dec 2014
journeyman
Offline
journeyman
Joined: Dec 2014
SpeakerIndex is an Integer ( 0 , 32 , 999 etc...)
Upon starting a conversation, usually the target ( most likely the NPC) will be the index 0 unless specified otherwise ( Directly in the dialog there's a dropdown list).

If you launch a dialog manually ( startTwoSpeakerDialog), then the speaker index is the order in which you put each character variable. ex :
StartTwoSpeakerDialog("myDialog",CHARACTER_NPC,CHARACTER_PLAYER1)

speakerindex 0 represents CHARACTER_NPX
speakerindex 1 represents CHARACTER_PLAYER1

Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
Originally Posted by TheMasterRat
SpeakerIndex is an Integer ( 0 , 32 , 999 etc...)


Apparently I was doing the speakerindex as an integer correctly.

Think I figured out what I had wrong.
I was using the copy name GUID as is:
CON_Herb_Tea_A <bc9ba999-306d-4caa-995e-5a6a7c703b86>

When it needed to be
CON_Herb_Tea_A_bc9ba999-306d-4caa-995e-5a6a7c703b86

Thanks.

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
Originally Posted by SniperHF
Originally Posted by TheMasterRat
SpeakerIndex is an Integer ( 0 , 32 , 999 etc...)


Apparently I was doing the speakerindex as an integer correctly.

Think I figured out what I had wrong.
I was using the copy name GUID as is:
CON_Herb_Tea_A <bc9ba999-306d-4caa-995e-5a6a7c703b86>

When it needed to be
CON_Herb_Tea_A_bc9ba999-306d-4caa-995e-5a6a7c703b86

Thanks.


Was just coming here to post that. Having to remove the brackets confused me for a long time too.

Joined: Jun 2013
old hand
OP Offline
old hand
Joined: Jun 2013
Yet another question along these lines. This time IsPlayerGold(SpeakerIndex,Operator,Amount)

What the heck is the "operator"? I can't get this to work at all so if someone has an example that would be awesome.

I'm just trying to check if the player has enough gold to buy a special item through dialog.

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
greater than, less than, equal to, etc.

CONDITION IsPlayerGold(1,>,299)
check c

Last edited by Burgee; 25/03/15 12:46 AM.

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