(Do for all humans)
Player Queue is 0 for computer
Current Player Brings dude to item
Deaths of Player Queue is exactly 0 for Current Player
----
Add 1 deaths for Player Queue for computer
Set to 1 for deaths of Player Queue for Current Player
(Do for all humans)
Player Queue is 1 for computer
Current Player Brings dude to item
Deaths of Player Queue is exactly 0 for Current Player
----
Add 1 deaths for Player Queue for computer
Set to 2 for deaths of Player Queue for Current Player
Etc. Etc. Etc. Etc. AKA do up to number of possible humans who could get there.
This way, it will know which one to give the player and then give it. Then you can read for current player.
If (Do for Computer)
"find out who gets it!" is set.
----Then
Subtract 1 for Player Queue for all players
If (Do for Computer)
battle is over
----
Set "find out who gets it!"
If (Do For All Humans)
"Find out who gets it" is set
Current Player has exactly 1 deaths of Player Queue
Current Player is not dead
-----Then
Give item to current player.
Clear "Find out who gets it"
Summary:
Each player is assigned a value according to the order they got there.
It reads that if your number is 1 (first) and you aren't dead then you get the item.
Since it wont clear the switch if 1st is dead, it will knock everyone's order value down one.
This way 2nd player will read as 1st and the real 1st still won't get it since he's dead (if he is dead)
Same thing applies for all players. It will keep knocking them down one until someone gets it.
Ultimately: 1 switch, 1 Death Count unit
Post has been edited 2 time(s), last time on Jul 25 2008, 11:15 pm by Kaias. Reason: Explanation
None.