Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: May 2020
Igrosky Offline OP
stranger
OP Offline
stranger
Joined: May 2020
Hi !!

I am trying to make some special dialog with a npc and add some question that are only show to the player if this one is at a precise lvl.

Exemple :

If the player is lvl 5 the NPC show him a new answer in addition to the other one.

Can someone help me to make such a thing ?

Thanks !

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
You have to set a flag on the player when the dialog starts if the player has the desired level. The best place to do this is https://docs.larian.game/Osiris/Shared/Proc_DialogFlagSetup

So define that proc for your dialog with the number of speakers your dialog has (probably two: the NPC and the player) twice:
* in the first one, always clear the flag on the player indicating that they have the desired level (to get rid of potential left-overs from starting the dialog last time)
* in the second one, set the flag if the player has the desired level (use https://docs.larian.game/Osiris/API/CharacterGetLevel on the second speaker to check this)


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