Jump to content

Checking for *anyone* dead in the party?


Domi

Recommended Posts

Without Sim's REALLY_DEAD state check? I guess you could try:

IF
 !InParty(Player2)
 InPartyAllowDead(Player2)
THEN
 RESPONSE #100
   Whatever()
END

InParty() will *never* be true if the object checked is dead, but I have no idea if this code will work the way you want (if at all).

Link to comment

In your case, it will (very sluggishly) look like:

 

+ ~InPartyAllowDead(Player2) Dead(Player2)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player3) Dead(Player3) InParty(Player2)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player4) Dead(Player4) InParty(Player2) InParty(Player3)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player5) Dead(Player5) InParty(Player2) InParty(Player3) InParty(Player4)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player6) Dead(Player6) InParty(Player2) InParty(Player3) InParty(Player4) InParty(Player5)~ + ~Say~ + Go

Link to comment
Which will return true even if your party did not have 6 players to start with. I guess it's better than nothing...

 

InPartyAllowDead(Player2) Dead(Player2) = InPartyAllowDead(Player2) !InParty(Player2)

 

These lines will show true then and only then when you have corpses in your party, and in each case, there'll be only one line.

 

 

EDIT:

+ ~InPartyAllowDead(Player2) !InParty(Player2)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player3) !InParty(Player3) InParty(Player2)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player4) !InParty(Player4) InParty(Player2) InParty(Player3)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player5) !InParty(Player5) InParty(Player2) InParty(Player3) InParty(Player4)~ + ~Say~ + Go

+ ~InPartyAllowDead(Player6) !InParty(Player6) InParty(Player2) InParty(Player3) InParty(Player4) InParty(Player5)~ + ~Say~ + Go

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...