Re: scoring problem PLZ READ
How many players will there be at max ? 4 ?
You might be able to make a loop at the end of the match, to pair player 1's and P2's score, and P3' and P4'. Then pair the greater score between p1p2 and p3p4 for the winner.
I am not sure if there's any extension that could pick the highest score.
Re: scoring problem PLZ READ
i forgot to mention that there will only be 1 player, and the other 5 opponents will be cpu
Re: scoring problem PLZ READ
I'm guessing you're a beginner so here's the simplest way I can think of without using fastloops:
Let's say MaxScore and Winner are global variables whose initial value is 0.
P1Score > MaxScore
-->Set MaxScore to P1Score
-->Set Winner to 1
P2Score > MaxScore
-->Set MaxScore to P2Score
-->Set Winner to 2
P3Score > MaxScore
-->Set MaxScore to P3Score
-->Set Winner to 3
P4Score > MaxScore
-->Set MaxScore to P4Score
-->Set Winner to 4
P5Score > MaxScore
-->Set MaxScore to P5Score
-->Set Winner to 5
P6Score > MaxScore
-->Set MaxScore to P6Score
-->Set Winner to 6
After you run through these six events, "Winner" will contain the number of the player who won. In the event of a tie it'll favor the player with the biggest player number.
Re: scoring problem PLZ READ
Quote:
Originally Posted by UltimateWalrus
I'm guessing you're a beginner so here's the simplest way I can think of without using fastloops:
Let's say MaxScore and Winner are global variables whose initial value is 0.
P1Score > MaxScore
-->Set MaxScore to P1Score
-->Set Winner to 1
P2Score > MaxScore
-->Set MaxScore to P2Score
-->Set Winner to 2
P3Score > MaxScore
-->Set MaxScore to P3Score
-->Set Winner to 3
P4Score > MaxScore
-->Set MaxScore to P4Score
-->Set Winner to 4
P5Score > MaxScore
-->Set MaxScore to P5Score
-->Set Winner to 5
P6Score > MaxScore
-->Set MaxScore to P6Score
-->Set Winner to 6
After you run through these six events, "Winner" will contain the number of the player who won. In the event of a tie it'll favor the player with the biggest player number.
so will this work for one controllable player and 5 other non-controllable opponents? and i am not really a beginner, could you show me how to do it with the fastloops? and what if i wanted to display the scores of each character on the top right corner, will that cover it?
Re: scoring problem PLZ READ
What does it matter who controls the players?
Here's how to do that exact same thing with a fastloop:
Code:
When the game is over, run loop "FindWinner" six times.
On loop "FindWinner"
+Global Value( loopindex("FindWinner")) > MaxScore
-->Set MaxScore to Global Value( loopindex("FindWinner"))
-->Set Winner to loopindex("FindWinner")+1
To display the scores you can use the counter object.