Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jun 2013
addict
OP Offline
addict
Joined: Jun 2013
You, know, if I want a dialog node to appear if a character has 100 gold ?
and then, remove the 100 gold if the character answers favorably ?

I think this should get me going...

Thanks in advance.

Last edited by Cromcrom; 26/09/17 09:27 AM.

Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Jun 2013
addict
OP Offline
addict
Joined: Jun 2013
Ok, so I will answer myself smile
found the info here:
https://docs.larian.game/Osiris/Shared/DB_DialogMoneyTransfer
1/ create an osiris story, or use one you already created, or whatever.
2/ in the init section, type something like:
DB_DialogMoneyTransfer(1,"fron_master_tracker",100);
3/ in the dialogue (in this case, "fron_master_tracker"), insert (in the "flags to check" cell) this script tag when you want a gold check condition : "GEN_CheckMagicPocketGold"
the amount of gold that will be checked, in my example, is 100.
4/ in the same dialogue node, insert "GEN_TransferNPCPayment" (in the "flag to set" cell) when you want the gold to be transfered. Beware, this is a character tag, you will have to write it yourself, it doesn't appear in a list (at least that's what I add to do...).
In my example, the amount of transfered gold will be 100.

Tadaaa.
There is a little more to it, but the wiki page is pretty well explained.

Enjoy you modding, fellow modders hehe

Last edited by Cromcrom; 26/09/17 09:27 AM.

Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Jun 2014
veteran
Offline
veteran
Joined: Jun 2014
thanks!


Moderated by  Larian_KVN 

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