Point system not working and script kept reading ELSE

This my code (the highest point to gain is 3);

if (YOU > 3) {
NARR
You gained [12345678910] points because abcdefghijkl
} elif (YOU < 3) {
NARR
You only gained [12345678910] points because abcdefghijkl
} else {
NARR
You failed to gain points because abcdefghijkl
}

…but for some reason the script kept reading ELSE even if the character got 3 points already. Can anyone help point out the mistake? (I did add @YOU +0 in the beginning of the script)

If the highest points gained is 3, then the if part should be = instead of >

if (YOU = 3) {
NARR
You gained [12345678910] points because abcdefghijkl
} elif (YOU < 3) {
NARR
You only gained [12345678910] points because abcdefghijkl
} else {
NARR
You failed to gain points because abcdefghijkl
}

1 Like

Ohhhhh!
How about; the normal amount you can get is 3 but you can still gain up to 6 (and both will get the same answer, anything that is above 3), should I make a new elif?

You could just put in the first if
if (YOU>2)
{
Congrats, you got…
}
elif (YOU =0)
{
You suck
}
else
{
You just got…
}
This way you include the case of making 3 points.