Aller au contenu

Photo

Don't force Reload unless all party members die


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
Jereniva

Jereniva
  • Members
  • 125 messages

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?

 



#2
4760

4760
  • Members
  • 1 212 messages

Do you mean avoid the respawn/resurrect screen?



#3
Jereniva

Jereniva
  • Members
  • 125 messages

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.



#4
Tchos

Tchos
  • Members
  • 5 063 messages

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.


  • Jereniva aime ceci

#5
4760

4760
  • Members
  • 1 212 messages

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()));


  • Jereniva aime ceci

#6
Jereniva

Jereniva
  • Members
  • 125 messages

Thank you both.
Appreciate the help!



#7
Tchos

Tchos
  • Members
  • 5 063 messages

And you shouldn't need to do any special GUI hiding if you use the SoZ scripts.



#8
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages

Directions for implementing the SoZ Death System


  • Jereniva aime ceci

#9
Jereniva

Jereniva
  • Members
  • 125 messages

Thank you Kaldor, I appreciate it, and enjoy looking through your blog.



#10
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages

Thanks.