# Multiple Points Across Multiple Characters

Okay so I have 5 characters who I’ve given points to periodically across my story (they all have gained 5 points now), and I want to have different situations for how they’ll interact with my MC.

I’ve looked at different guides about the points system but I only saw things comparing between 2 characters rather than 5.

I’ll try to explain what I’m looking to do:

if CHARACTER 1 = 5
if CHARACTER 2 = 5
if CHARACTER 3 = 5
if CHARACTER 4 = 5
if CHARACTER 5 = 5
else (if they didn’t get all 5 points for any character)

How would I code something like this?

Thanks,

Maybe you could try:

if(CHARACTER1 = 5){
if(CHARACTER2 = 5){
if(CHARACTER3 = 5){
if(CHARACTER4 = 5){
if(CHARACTER5 = 5){
#some code for
#did get all the points
}else{
goto label
}
}else{
goto label
}
}else{
goto label
}
}else{
goto label
}
}else{
goto label
}

label
#some code for
#did not get all the points

…And I have no idea if this works, I’m on my phone so haven’t tested it (I’ve noticed that the curly brackets sometimes doesn’t register as they do in other programming languages.)

Edit:
Or you could have a counter and check if the counter is equal to five.

if(CHARACTER1 = 5){
@COUNTER +1
}
if(CHARACTER2 = 5){
@COUNTER +1
}
if(CHARACTER3 = 5){
@COUNTER +1
}
if(CHARACTER4 = 5){
@COUNTER +1
}
if(CHARACTER5 = 5){
@COUNTER +1
}
if(COUNTER = 5){
#do something
}else{
#something else
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.