Dogwithswords
Member
I am currently aware that the max function simply compares all the values within the argument and produces the highest value.
What I'm wanting to accomplish is a function that checks the threat level of each enemy in the room and finds the highest threat level. The number of enemies (or entries) into the max function can be anything depending upon how many there are.
For example we have three enemies with threat levels of 93, 75, and 42 in one wave, then another enemy appears with a threat level of 88.
I want to know what I'd need to write to add or subtract the number of values within the max function.
What I'm wanting to accomplish is a function that checks the threat level of each enemy in the room and finds the highest threat level. The number of enemies (or entries) into the max function can be anything depending upon how many there are.
For example we have three enemies with threat levels of 93, 75, and 42 in one wave, then another enemy appears with a threat level of 88.
I want to know what I'd need to write to add or subtract the number of values within the max function.