Jump to content


Photo

How to check for Player2 is dead?


2 replies to this topic

#1 jastey

jastey
  • Gibberlings
  • 6968 posts
  • Gender:Female

Posted 31 October 2017 - 02:10 AM

I want to check whether player2 - Player6 are dead (but in the party, obviously).

 

Dead(Player2) doesn't compile because "Player2" is not a string - so how would I do that?



#2 Roxanne

Roxanne

    Modder

  • Modders
  • 1673 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 31 October 2017 - 02:36 AM

What about StateCheck(Player2,STATE_REALLY_DEAD)?
 

Or

If you want to check that only player1 is still alive

 

IF

!StateCheck(Player1,STATE_REALLY_DEAD)

NumInPartyAliveGT(0) //or whatever value you want to check for

NumInPartyAliveLT(2)


Edited by Roxanne, 31 October 2017 - 02:37 AM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#3 jastey

jastey
  • Gibberlings
  • 6968 posts
  • Gender:Female

Posted 31 October 2017 - 10:12 AM

Thank you, the StateCheck is what I needed.

Edited by jastey, 31 October 2017 - 10:12 AM.




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users