Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Dec 2014
journeyman
OP Offline
journeyman
Joined: Dec 2014
A quick question, is there a way to revive a dead character directly from the editor? I'm about to make myself an auto-resurrect script if I can't find out soon ;)

Thanks!

Joined: Aug 2014
old hand
Offline
old hand
Joined: Aug 2014
Supposedly press CTRL+SHIFT+R while hovering your cursor over a dead party member to resurrect him. Not sure how if you mean an NPC. Check out the "Creating Combat" document for more commands. Let me know if that command works for you, because it doesn't (or any of the other commands) for me.

Joined: Dec 2014
journeyman
OP Offline
journeyman
Joined: Dec 2014
Originally Posted by Baardvark
Supposedly press CTRL+SHIFT+R

Thanks for the quick answer but unfortunately it doesn't work. This is probably because I'm making a standalone mod. I checked the word document "Creating Combat" and tested the different shortcuts and none of them worked on my module.

*Edited Answer*
I do have a work around that works. I made a script that I attached to my character that sends a CharacterEvent to a Osiris. I can de-activate it directly in the editor by modifying the Active variable so I don't have to modify or remove the script if I don't need it anymore.

Story Script

Code
PROC
	ProcResurrect((CHARACTER)_CharacterToResurrect)
AND
	DB_Resurrect(_CharacterToResurrect)
THEN
	CharacterResurrect(_CharacterToResurrect);

IF
	CharacterEvent(_Character,"Resurrect")
THEN
	ProcResurrect(_Character);




Character Script

Code
#INCLUDE Base
INIT
USING Base
CHARACTER:__Me
EXTERN INT:%Active = 1 

EVENTS

EVENT Init
ON
	OnInit()
	
ACTIONS
	IF "c1&c2"
		CharacterIsDead(__Me)
		IsEqual(%Active,1)
	THEN
		CharacterResurrect(__Me)
	ENDIF
	
EVENT UponDying
ON
	OnDie(__Me,_,_,_)
ACTIONS
	IF "c1"
		IsEqual(%Active,1)
	THEN
		CharacterEvent(__Me,"Resurrect")
	ENDIF





Last edited by TheMasterRat; 23/12/14 07:45 PM.
Joined: Jul 2014
R
addict
Offline
addict
R
Joined: Jul 2014
If I remember correctly from when I was working on my Respawning Enemies mod, OnDie doesn't trigger for instanced characters like summons (or anything else that doesn't stick around through a map change), nor are they able to be seen by any sort of Story script.

If you're trying to have your player character resurrect, then it might be simpler to make a Story script that you can delete after its no longer necessary.

Joined: Dec 2014
journeyman
OP Offline
journeyman
Joined: Dec 2014
Thanks for the tip!
*Edited*
I changed my solution post, sharing in case anyone needs this!

Last edited by TheMasterRat; 23/12/14 07:46 PM.

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