Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#539284 08/08/14 03:25 AM
Joined: Aug 2014
D
stranger
OP Offline
stranger
D
Joined: Aug 2014
Just a nooby question... I'm just not sure where to put the code for GameEnd() so that the script constantly checks whether the character is dead or not and ends the game if so.

Joined: Jul 2014
member
Offline
member
Joined: Jul 2014
IF CharacterDied(Your character)
THEN
ShowGameOverMenu()

EDIT if yours is a two player game

IF CharacterDied(CHARACTER_Player2)
AND CharacterIsDead(CHARACTER_Player1, 1)
THEN
ShowGameOverMenu();

IF CharacterDied(CHARACTER_Player1)
AND CharacterIsDead(CHARACTER_Player2, 1)
THEN
ShowGameOverMenu();

Last edited by Demonata08; 08/08/14 03:33 AM.
Joined: Aug 2014
D
stranger
OP Offline
stranger
D
Joined: Aug 2014
Worked perfectly, thanks.

Joined: Jul 2014
member
Offline
member
Joined: Jul 2014
Originally Posted by Daphreak
Worked perfectly, thanks.



Np, Gets a little tricky if you want companion deaths to be factored in. But normally just death on the two main characters should be good laugh

good luck.


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