Modify or delete tie breaker during the game

Game development with Board Game Arena Studio
Post Reply
User avatar
Woodruff
Posts: 423
Joined: 08 March 2014, 00:53

Modify or delete tie breaker during the game

Post by Woodruff »

Hi!
I'm working on a game where player can collect achievements and influence as well.
There are two possibilities for winning (plus a third but it is irrelevant for this problem) :
  • Achievements: When one player get a certain number of achievements, he wins immediately. In that case, I want players to be ranked by the number of achievement they get. There is no tie-breaker defined by the rules for ranking the losers and I don't want to define one:
    player_score = achievements
    player_score_aux = none (I put zero for everyone)
  • Influence: If nobody manages to get enough achievements before the game ends, the player who has the greater influence wins, even if this player has fewer achievements than others. If there is a tie, the player with most achievements wins. And I want to use that tie breaker to rank losers as well. So in that case, I change player_score just before the 'gameEnd' state:
    player_score = influence
    player_score_aux = achievements
Currently, here's what I put in gameinfos.inc.php for tie-breaker.

Code: Select all

'tie_breaker_description' => "Number of achievements",
It works well for the second case but it's weird for the first one: if two players tie, they get both (0 [grey star]) as tie breaker with the formula description "Number of achievements", which is totally wrong.
I think it's not possible to remove the tie-breaker but is it at least possible to modify the tie breaker description in place to indicate that this zero means nothing?

Thanks a lot :)

Tchebychev
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Modify or delete tie breaker during the game

Post by Victoria_La »

Non programmatic option - specify both of them (i.e. as rules would describe it) or nothing at all.

Gameoptions is array which is loaded somewhere, but I cannot figure out where this ends up and if there is way to
modify it during the game. I think intention is that all values there are static and immutable.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Modify or delete tie breaker during the game

Post by Victoria_La »

Answer from Een that tiebreaker description cannot be modified programmatically
Post Reply

Return to “Developers”