Hi,
Is there a single, global, boolean variable that decides whether computer players are shown in leaderboards?
As a follow-up, when one disables computer players from leaderboards, how do conditions like "Highest Score" behave?
Suppose this happened:
1. Disable computers from leaderboards
2. Give Computer A a custom score of 100
3. Give Human Player 1 a custom score of 50
1. End scenario in victory for player with highest custom score
And the winner is?
None.
An artist's depiction of an Extended Unit Death
Is there a single, global, boolean variable that decides whether computer players are shown in leaderboards?
Not sure what you're asking for here, so here's a couple answers:
1) You can detect with EUDs if computers are disabled from the leaderboard, though I don't see why one would ever resort to that when you can keep track of it with a switch yourself.
2)
Disabling computers from the leaderboard does more work than just hiding it from the current player's leaderboard display; in fact, it affects game state, which leads to your follow-up question.As a follow-up, when one disables computer players from leaderboards, how do conditions like "Highest Score" behave?
Suppose this happened:
1. Disable computers from leaderboards
2. Give Computer A a custom score of 100
3. Give Human Player 1 a custom score of 50
1. End scenario in victory for player with highest custom score
And the winner is?
The winner is Player 1: by disabling the computer player from the leaderboard, its score is discluded from these calculations.The winner is Computer A.
Post has been edited 2 time(s), last time on May 15 2014, 12:32 am by Roy. Reason: I'm committing extended unit seppuku now
If it affects the game state can it cause a desynch then?
e.g. a local memory condition flips the state each time.
But it would only matter if a condition actually used that data (e.g. highest score)? Otherwise it would stay synchronous?
None.
An artist's depiction of an Extended Unit Death
It causes a desync immediately. See the list of actions in the collapse box in this post:
http://www.staredit.net/topic/14226/#304566However, you're free to experiment with this for yourself if you believe it to be incorrect.
Post has been edited 1 time(s), last time on May 15 2014, 12:29 am by Roy. Reason: I was the opposite of right
It causes a desynch immediately? So if I had a leaderboard cycled through by Fkeys, it would desynch once a player called the action "Disable use of computer players in leaderboard?"
If I use a local memory condition to set a player's deaths to some value (say by pressing an Fkey), but I never actually reference that value or use it for any computations, what does it matter if that variable is not synchronized?
None.
The winner is Player 1: by disabling the computer player from the leaderboard, its score is discluded from these calculations.
Never knew this one! It's exiting how you find out new SC quirks after years... this one is a good candidate for quirks and nuances, if it's not already there.
It causes a desynch immediately? So if I had a leaderboard cycled through by Fkeys, it would desynch once a player called the action "Disable use of computer players in leaderboard?"
It's a yes from what I read.
If I use a local memory condition to set a player's deaths to some value (say by pressing an Fkey), but I never actually reference that value or use it for any computations, what does it matter if that variable is not synchronized?
Unfortunatelly yes, deaths are indirectly synchronized from time to time. This won't be an instant desynch, but I had problems with this in the past. Eventually figured out it was deaths causing the problem. It's not logic but it's the way SC works.
Some.
An artist's depiction of an Extended Unit Death
Well, I decided to fact-check myself on this, and apparently I'm 100% wrong about everything.
1) The conditions checking for highest/lowest are disjoint from the leaderboard, so regardless of whether or not you're enabling computers on the leaderboard, computers are considered in these conditions. In fact, there is no condition in SC that pertains to or relies on the leaderboard or its trigger actions.
2) Following this, I tested whether or not enabling computers on the leaderboard is a global action. It is not.
I have some posts to edit and people to yell at for this (mostly myself). Attached are the test maps I used for checking the above behaviors.
Attachments:
Okay, thanks alot for correction, but toggling computers leaderboard might have non-instant global effect like with deaths (though it's not really logic to think so).
Some.