Team Score in Minigame

I am trying to build a minigame that includes Slayer scoring but I want to base it on the Minigame mode to make use of minigame:object labels in my map.

In the Monitor’s Bounty release notes it explicitly highlights the problem I have; kills only increment the player score not team score:

NOTE: In this mode when playing a Team based game, player scores do not contribute to the team score. This is intentional to allow for a wider variety of custom gameplay experiences. Through scripting it is possible to convert player score into team score though.”

But what is the scripting solution referred to? The only approach I’ve found so far is the one used in Gun Game. But it’s insanely complex and I’d be surprised if that’s what the Forge team were thinking of when they wrote those notes.

Is there really no simpler solution?

First thing I can think of is:

  • At game start, assign each player a different label (boundary check over initial spawn) - Continuously assign player’s own score to their label - Create a variable for each team, and continuously assign the sum of the player’s labels in that team to the team variable - Continuously set the team score to the team variableEnsure the scope of all variables/labels are global.

If that doesn’t work, you could use lists, but they would me more complex to program. (I’ve just discovered Halo 5 has a list function, and I’m really excited to see what I can do with it - if only a text window could open, that would make it a lot easier).

Thanks for responding. The key problem appears to be how to assign the players’ scores to something global. If you try and do a “Number: Change” action on a global it doesn’t offer an option to use a player as a source. The only things that seem to allow you to use the player as a source are terminal interactions and boundary checks.

> 2535464696611195;3:
> Thanks for responding. The key problem appears to be how to assign the players’ scores to something global. If you try and do a “Number: Change” action on a global it doesn’t offer an option to use a player as a source. The only things that seem to allow you to use the player as a source are terminal interactions and boundary checks.

did you figure this out?

i made a prefab thats fixes this. its called minigame teamcore fix. on my files.

> 2533274821339472;5:
> i made a prefab thats fixes this. its called minigame teamcore fix. on my files.

I found your prefab and dropped it into my map, but I can’t seem to get it to work correctly. Are any modifications needed for this to work? I’m using it on a KoTH map but I also want the players kills to contribute to the score.

> 2641173531479531;6:
> > 2533274821339472;5:
> > i made a prefab thats fixes this. its called minigame teamcore fix. on my files.
>
> I found your prefab and dropped it into my map, but I can’t seem to get it to work correctly. Are any modifications needed for this to work? I’m using it on a KoTH map but I also want the players kills to contribute to the score.

i cant really remember. i designed it for the minigame mode and it only works for red and blue teams