Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Aug 2014
D
stranger
OP Offline
stranger
D
Joined: Aug 2014
Ello there, just a quick question. I'm trying to get a character to simply display text when he dies, but it doesn't seem to be working. All of my other CharacterDisplayText() calls that don't require a dead character work fine. This is what I've tried:
Code
IF
CharacterDied(CHARACTER_prisoncaptain)
THEN
CharacterDisplayText(CHARACTER_prisoncaptain,"prison_captain_dead");

as well as:
Code
IF
CharacterDying(CHARACTER_prisoncaptain)
THEN
CharacterDisplayText(CHARACTER_prisoncaptain,"prison_captain_dead");
just to see if it made a difference (it didn't).
So I'm assuming characters can't display text while dead/dying, but does anyone know a workaround for this or can show me if I did something wrong?

Joined: Jul 2014
enthusiast
Offline
enthusiast
Joined: Jul 2014
This is super clunky and probably terribly inefficient (if not entirely unnecessary) I'm sure, but maybe something like this would work,

Code
IF
CharacterDied(CHARACTER_prisoncaptain)
AND
CharacterGetPosition(CHARACTER_prisoncaptain,_X,_Y,_Z)
THEN
CharacterSetOnStage(CHARACTER_prisoncaptain,0);
ItemTeleportToPosition(ITEM_prisoncaptaincorpse,_X,_Y,_Z);
ItemDisplayText(ITEM_prisoncaptaincorpse,"prison_captain_dead");


Escape From Smalcatraz: Steam/Nexus. Forum thread.
Joined: Jul 2014
R
addict
Offline
addict
R
Joined: Jul 2014
Is there an entry for "prison_captain_dead" within your mod's Localization file?

Joined: Aug 2014
D
stranger
OP Offline
stranger
D
Joined: Aug 2014
Haha nice improvising! I used most of your code except the "CharacterSetOnStage(CHARACTER_prisoncaptain,0);" and just created a spoon as the "corpse" and scaled it down to size 0.1 and it worked well enough, so thank you!

Joined: Jul 2014
enthusiast
Offline
enthusiast
Joined: Jul 2014
Ha, you're welcome. I feel pretty certain that it's an airquotes-bad solution, but whatever. A bad solution still solves a problem!


Escape From Smalcatraz: Steam/Nexus. Forum thread.

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