How to make a 1-3 star system, when level finishes and player has to be graded.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By yeeshu06
:warning: Old Version Published before Godot 3 was released.

Good day,

I wanted to ask, based on a progress bar i made…how can i make a 3 star system to grade player upon finishing level? Any ideas? Thanks

:bust_in_silhouette: Reply From: eons
if value >= star3value:
 got 3
elif value >= star2value:
 got 2
elif value >= star1value:
 got 1
else:
 probably lost...

Basically just that, then you need to define what is 1, 2 and 3, if that is set/register for each level or global and other details, design stuff.