Hey dear community!
I'm struggling hard.
-> I need to compare the intelligence attributes of 2 to 5 units for figuring out who has the most. In the end I need to have a list of who is best, the second-best, the third-best and so on.
That means I can't have two units to be even. So..:
Let's say Unit A has 10 Intelligence and Unit B has 10 Intelligence.
If units are equally intelligent, I would compare the food of both owners as the second try to figure out which rank the unit gets in the list, but here is the first problem:
What if Unit A and Unit B have 10 intelligence as already mentioned, but Unit C and Unit D have both 6 intelligence?
Here my brain explodes. So far I would have used some awkward if/then/else chain with some loop around I guess, but here I don't have a nice idea how to go on, as we have two groups of units that have equal intelligence in a different way.
Furthermore when the food ends up being equal as well, I would then need to throw one dice per player involved.
Long Story short:
I need a trigger/system or whatever that concludes the following:
Unit A = 10 Intelligence -> Rank: 4 or 5 ?
Unit B = 10 Intelligence -> Rank: 4 or 5 ?
Unit C = 12 Intelligence -> Rank: 1, 2 or 3 ?
Unit D = 12 Intelligence -> Rank: 1, 2 or 3 ?
Unit E = 12 Intelligence -> Rank: 1, 2 or 3?
---> Equal Intelligence triggers alternative comparison
Player of Unit A = 30 Food -> Rank: 4 or 5?
Player of Unit B = 30 Food -> Rank: 4 or 5?
Player of Unit C = 30 Food -> Rank: 1
Player of Unit D = 20 Food -> Rank: 2 or 3?
Player of Unit E = 20 Food -> Rank: 2 or 3?
---> Equal Food triggers alternative comparison
Player of Unit A rolls a dice = 5 -> Rank: 4 or 5?
Player of Unit B rolls a dice = 5 -> Rank: 4 or 5?
Player of Unit D rolls a dice = 2 -> Rank: 2
Player of Unit E rolls a dice = 1 -> Rank: 3
---> Equal cast of dice triggers another round of dice comparison
Player of Unit A rolls a dice again = 4 -> Rank: 4
Player of Unit B rolls a dice again = 1 -> Rank: 5
I hope this is understandable. If you have any questions, please ask immediately!
I would be soo grateful if someone knows a good way of doing this. Even if you provide only the logic it helps already.
Cheers
old_edge
I'm struggling hard.
-> I need to compare the intelligence attributes of 2 to 5 units for figuring out who has the most. In the end I need to have a list of who is best, the second-best, the third-best and so on.
That means I can't have two units to be even. So..:
Let's say Unit A has 10 Intelligence and Unit B has 10 Intelligence.
If units are equally intelligent, I would compare the food of both owners as the second try to figure out which rank the unit gets in the list, but here is the first problem:
What if Unit A and Unit B have 10 intelligence as already mentioned, but Unit C and Unit D have both 6 intelligence?
Here my brain explodes. So far I would have used some awkward if/then/else chain with some loop around I guess, but here I don't have a nice idea how to go on, as we have two groups of units that have equal intelligence in a different way.
Furthermore when the food ends up being equal as well, I would then need to throw one dice per player involved.
Long Story short:
I need a trigger/system or whatever that concludes the following:
Unit A = 10 Intelligence -> Rank: 4 or 5 ?
Unit B = 10 Intelligence -> Rank: 4 or 5 ?
Unit C = 12 Intelligence -> Rank: 1, 2 or 3 ?
Unit D = 12 Intelligence -> Rank: 1, 2 or 3 ?
Unit E = 12 Intelligence -> Rank: 1, 2 or 3?
---> Equal Intelligence triggers alternative comparison
Player of Unit A = 30 Food -> Rank: 4 or 5?
Player of Unit B = 30 Food -> Rank: 4 or 5?
Player of Unit C = 30 Food -> Rank: 1
Player of Unit D = 20 Food -> Rank: 2 or 3?
Player of Unit E = 20 Food -> Rank: 2 or 3?
---> Equal Food triggers alternative comparison
Player of Unit A rolls a dice = 5 -> Rank: 4 or 5?
Player of Unit B rolls a dice = 5 -> Rank: 4 or 5?
Player of Unit D rolls a dice = 2 -> Rank: 2
Player of Unit E rolls a dice = 1 -> Rank: 3
---> Equal cast of dice triggers another round of dice comparison
Player of Unit A rolls a dice again = 4 -> Rank: 4
Player of Unit B rolls a dice again = 1 -> Rank: 5
I hope this is understandable. If you have any questions, please ask immediately!
I would be soo grateful if someone knows a good way of doing this. Even if you provide only the logic it helps already.
Cheers
old_edge
Last edited: