Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2017
G
Ginko Offline OP
stranger
OP Offline
stranger
G
Joined: Sep 2017
I came across this while parsing GLO_GameMasterCharacterCreation in the GM module.

[code]IF
GMCampaignModeStarted("Prepare")
AND
DB_CharacterCreationDummy(_Dummy)
THEN
CharacterMakeNPC(_Dummy);
SetOnStage(_Dummy,0);[/code]

From my understanding, this code runs when the GM Campaign starts in "Prepare" mode.

But i'm uncertain about,

DB_CharacterCreationDummy(_Dummy)

My guess is that, here we combine this statement using an AND and the variable _Dummy so that the "THEN" block will run on every entry in the DB_CharacterCreationDummy

i.e.
On prepare, it would turn all the character creation dummies into NPCs and "Set on stage 0" which is hiding them? Presumably to prepare the npc's for further char creation.

Is this correct? :)

Joined: Sep 2017
G
Ginko Offline OP
stranger
OP Offline
stranger
G
Joined: Sep 2017
While we're at it. Is there a place where we can look at the source code for the Osiris API calls? laugh

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
Originally Posted by Ginko
i.e.
On prepare, it would turn all the character creation dummies into NPCs and "Set on stage 0" which is hiding them? Presumably to prepare the npc's for further char creation.

Is this correct? smile


Yes, that is correct. You may want to have a look at https://docs.larian.game/Osiris_Overview, where this (and other aspects of the Osiris language) are explained.

The SetOnStage Osiris API has been documented already.

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
Originally Posted by Ginko
While we're at it. Is there a place where we can look at the source code for the Osiris API calls? laugh

No, that's closed source.


Moderated by  Larian_KVN 

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