Larian Banner
Previous Thread
Next Thread
Print Thread
random behaviour- osiris script #632464
20/10/17 01:15 PM
20/10/17 01:15 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
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?

Re: random behaviour- osiris script [Re: monzua] #632488
20/10/17 02:43 PM
20/10/17 02:43 PM
Joined: Oct 2017
Posts: 78
United Kingdom
Branvex Offline
journeyman
Branvex  Offline
journeyman

Joined: Oct 2017
Posts: 78
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.

Re: random behaviour- osiris script [Re: Branvex] #632834
22/10/17 01:50 PM
22/10/17 01:50 PM
Joined: Mar 2016
Posts: 506
Belgium
T
Tinkerer Offline

addict
Tinkerer  Offline

addict
T

Joined: Mar 2016
Posts: 506
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.


Moderated by  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2