šŸø Martini's script template: 3 characters points check

Iā€™m here with another quick template. I thought Itā€™d be more complicated but I tested it and it works perfectly :dancer:

This is for when youā€™re using a point system with 3 characters. For example 3 love interests or 3 different paths like ā€œloveā€, ā€œcourageā€, ā€œmindā€ or something :slight_smile:

You can of course use it for more characters but then youā€™ll have to add the additional position to the if-else-statement.

Template:

if (CHAR1 > CHAR2) {
  if (CHAR1 > CHAR3) {
    #Character 1 has the most points
  }elif (CHAR3 > CHAR1)
    #Character 3 has the most points
  }else {
    #Character 1 and 3 have the same points
  }
}elif (CHAR2 > CHAR1) {
  if (CHAR2 > CHAR3) {
    #Character 2 has the most points
  }elif (CHAR3 > CHAR2)
    #Character 3 has the most points
  }else {
    #Character 2 and 3 have the same points
  }
}else {
  if (CHAR2 = CHAR3) {
    #All characters have the same points
  }else {
    #Characters 1 and 2 have the same points
  }
}

I hope you find this helpful :yellow_heart: Let me know what template I should do next :wink:


My other templates:

Tutorials:

Other threads:

8 Likes

Bump :slight_smile:

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