Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2017
M
monzua Offline OP
member
OP Offline
member
M
Joined: Sep 2017
Code
IF
ObjectFlagSet("CheckCash2000",(CHARACTERGUID)_Player,_Instance)
AND
CharacterGetGold((CHARACTERGUID)_Player,_Gold)
AND
_Gold >=  1999
THEN
ObjectSetFlag(_Player, "HasCash");
Proc_GiveNPCGold(_Player,CHARACTERGUID_DONOTUSE_Imps_Grunt_A_000_04d3704a-6279-4f6a-8b5d-ec1e72757abb,2000);


It seems althrough I have enougth cash in my inventory the outcome is always different.

Out of 10 tries only 8 triggered the Flag "HasCash" to show the question in dialog. Its funny i added out of couriosity 5 dialogs in between so i am sure its no framedelay stuff... this drives me MAD

any ideas?

Joined: Oct 2017
Location: United Kingdom
journeyman
Offline
journeyman
Joined: Oct 2017
Location: United Kingdom
I saw something similar with a script like this. I changed the IF ObjectFlagSet to IF DialogStarted (with the NPC I was talking with and wanted to give the gold to) and it works every time.

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
Try using https://docs.larian.game/Osiris/Shared/DB_DialogMoneyTransfer instead. It's used everywhere there's a money transfer from dialog in the main game and hence should be pretty solid.


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