Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
R
Rhidian Offline OP
addict
OP Offline
addict
R
Joined: Jul 2014
Specifically, I am wondering about Strings. Is there a way to output a string to the player ingame, even if you don't necessarily know what the contents of that String is (like if a character uses a skill, what skill that is)?

The CharacterDisplayText and related functions don't work that well. The strings that are passed into that function are actually keys to a localization table, which determines what value is actually displayed (and if it's not there, prints nothing).

Joined: Aug 2014
R
apprentice
Offline
apprentice
R
Joined: Aug 2014
Are you trying to emulate the functionality of Character Display text? or are you trying to get a different effect? Or it doesn't matter as long as they get the info?

Joined: Jul 2014
R
Rhidian Offline OP
addict
OP Offline
addict
R
Joined: Jul 2014
Well, it's for debugging purposes mainly. I don't care how the variable is presented as long as I can see what it says.

Joined: Jul 2014
Location: Finland
journeyman
Offline
journeyman
Joined: Jul 2014
Location: Finland
I suppose you can use DebugBreak() function like:

DebugBreak(_MyStringVar);

The result are shown in the MessagePanel. (Usually on a bottom of the screen)

I am not sure if the execution of the rule will break but it should be o.k. to use it as a last line in a rule.

Joined: Jul 2014
Location: Finland
journeyman
Offline
journeyman
Joined: Jul 2014
Location: Finland
One more thing: DebugBreak() doesn't display the same text multiple times in a row.

Joined: Jul 2014
R
Rhidian Offline OP
addict
OP Offline
addict
R
Joined: Jul 2014
That's not in-game though is it? I thought DebugBreak only functioned in the Editor, where there is the Debug part of the Message Panel there.

To be honest, I haven't touched the Game mode of the Editor. I've just started up a new game outside the Editor, since that takes me through the mod like how a player would experience it.

Joined: Aug 2014
R
apprentice
Offline
apprentice
R
Joined: Aug 2014
But it's about 1000x faster to hit escape then to load up a new game.

Joined: Aug 2014
M
Mag Offline
journeyman
Offline
journeyman
M
Joined: Aug 2014
Hi. I'm trying to use display character text for the same purpose. The code is compiling and doesn't error when I play but I'm not sure it's working either. Did you ever find an alternative Rhidian?

Joined: Aug 2014
M
Mag Offline
journeyman
Offline
journeyman
M
Joined: Aug 2014
I ended up accomplishing this by putting in a condition check and display text when it was true.

Something like

IF
_variable == "Value_You_Expect"
THEN
CharacterDisplayText(_Player,"TextKey");


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