If you’re willing to use curly brace notation, you can work with the name of your skills in variables to determine the highest and second-highest. In this example, I have four skill variables: skill_labwork
, skill_library_research
, skill_rhetoric
, and skill_reasoning
. The following code will put the name of the highest skill in the variable max_skill
and the second-highest skill in the variable second_max_skill
:
*temp max_skill "skill_labwork"
*temp second_max_skill "skill_library_research"
*if {max_skill} < skill_library_research
*set second_max_skill max_skill
*set max_skill "skill_library_research"
*elseif {second_max_skill} < skill_library_research
*set second_max_skill "skill_library_research"
*if {max_skill} < skill_rhetoric
*set second_max_skill max_skill
*set max_skill "skill_rhetoric"
*elseif {second_max_skill} < skill_rhetoric
*set second_max_skill "skill_rhetoric"
*if {max_skill} < skill_reasoning
*set second_max_skill max_skill
*set max_skill "skill_reasoning"
*elseif {second_max_skill} < skill_reasoning
*set second_max_skill "skill_reasoning"
In your case, use ROTP, OUAD, FB, and WC in place of the skill_whatever values. Then you can see if max_skill equals OUAD, or if second_max_skill equals OUAD.