Online Multiplayer - How do I make the winner gain 3 stars and the losers win 1 star (Multiplayer Currency)

I need the following to happen at the end of a Multiplayer Battle:

Winner wins:
1 star for completing the battle
1 star for being the last man standing
1 star if the battle is done in less than 200 seconds

Loser wins:
1 star for completing the battle

Winner and losers get their stars added and saved to their own instance Global Variable that is used to buy Hats and Skins.

When the Players get destroyed their own instances get deleted so I tried the following but it’s not working:
(For reference the “Star Menu” is what appears when the battle ends and starts the rest of the code)


I think this topic will probably be important as Multiplayer currency is a big thing but didn’t find anything that could help me in the forum.

Thanks in advance!

Up. If anyone can please help me, still struggling with this

Up. Wondering if the global variable for the stars that gets saved is only the one on the host side and probably it messes things up. Still trying to figure out this one. Or even if it is possible in Gdevelop.

Should be possible. What is it doing or not doing?

https://www.youtube.com/watch?v=3JJPT-SbdnM

I added a recording from the Gdevelop preview so you can have a better idea! I messed a bit with the code and I think it got worse.

What should happen:
Game mode is Last man standing:
The only player that remains without the “explosion” animation is the winner.
Winner get 2 stars + 1 star if he is the last one standing in less than 200 seconds
Loser gets 1 star
Each player should get those blue stars saved to their own global variable in which they can unlock skins for their character in game.

What is happening:
Everyone only gets 1 star
The stars aren’t being saved to the global variable.
Looks like the first star and blue bot giving a thumbs up is being duplicated maybe.

Gotcha. Did you disable synchonization of the variable where the stars are stored?

Oh my god… this is it! I completely forgot that option exists!! Going to try, but at first thought this will probably fix it