Is there a campaign setting for only forcing a Reload if all party members die?
Or is this a scripting thing, if possible at all?
Is there a campaign setting for only forcing a Reload if all party members die?
Or is this a scripting thing, if possible at all?
Do you mean avoid the respawn/resurrect screen?
Yes, I think the wording on there is "Respawn", not "reload", sorry.
If I start a game and make a party using the Party Editor, the Respawn will come up if the starting PC dies, even if the other 3 PCs are still alive.
Just in case you haven't done this, you need the module scripts to basically be the same as in SoZ for the SoZ party and death systems to work. The scripts are in the SoZ campaign folder if I recall correctly, and need to be copied into your own campaign.
Well, the good news is that it is possible.
If I remember how to do it, you'll have to use some GUI script:
void GUI()
{//one more check just to make sure the death screen should pop up.object oPlayer = OBJECT_SELF;object oMember = GetFirstFactionMember(oPlayer,FALSE);while (GetIsObjectValid(oMember)){if (!GetIsDead(oMember)) return;oMember = GetNextFactionMember(oPlayer,FALSE);}DisplayGuiScreen(oPlayer,"SCREEN_PARTY_DEATH",FALSE);SetGUIObjectDisabled(oPlayer,"SCREEN_PARTY_DEATH","BUTTON_RESPAWN",TRUE);SetGUIObjectHidden(oPlayer,"SCREEN_PARTY_DEATH","BUTTON_RESPAWN",TRUE);SetGUIObjectDisabled(oPlayer,"SCREEN_PARTY_DEATH","BUTTON_WAIT_FOR_HELP",TRUE);SetGUIObjectHidden(oPlayer,"SCREEN_PARTY_DEATH","BUTTON_WAIT_FOR_HELP",TRUE);}
to hide all buttons except "reload", and in the module properties have a reference to a script calling this GUI in the player on death event. The line below calls the revised GUI, but of course you'll have to loop through all party members first.
DelayCommand(2.0,AssignCommand(GetFirstPC(), GUI()));
Thank you both.
Appreciate the help!
And you shouldn't need to do any special GUI hiding if you use the SoZ scripts.
Thank you Kaldor, I appreciate it, and enjoy looking through your blog.
Thanks.