Domi Posted February 22, 2006 Share Posted February 22, 2006 I was trying to do the OR(5) Dead(Player2) Dead(Player3) etc trigger for an option in a chat, but it did not work. WOuld anyone know of a convenient walk-around that can be used as a trigger for a PC's option? Link to comment
devSin Posted February 22, 2006 Share Posted February 22, 2006 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
Kulyok Posted February 22, 2006 Share Posted February 22, 2006 My preference (and it worked) is + ~InPartyAllowDead(Someone) Dead(Someone)~ + ~Something~ + Somewhere Link to comment
Kulyok Posted February 22, 2006 Share Posted February 22, 2006 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
Domi Posted February 22, 2006 Author Share Posted February 22, 2006 Dead(Player2) does not compile, because it looks for a "string" Link to comment
Kulyok Posted February 22, 2006 Share Posted February 22, 2006 Then use "!InParty(Player2)"(Player3, etc) Link to comment
Domi Posted February 22, 2006 Author Share Posted February 22, 2006 Which will return true even if your party did not have 6 players to start with. I guess it's better than nothing... Link to comment
Kulyok Posted February 22, 2006 Share Posted February 22, 2006 Which will return true even if your party did not have 6 players to start with. I guess it's better than nothing... <{POST_SNAPBACK}> 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
Domi Posted February 22, 2006 Author Share Posted February 22, 2006 Okay, got it, thank you Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.