GetMostDangerousClass
From NWN Lexicon
Jump to navigationJump to search
GetMostDangerousClass(struct)
Use the four archetypes to determine the most dangerous group type facing the NPC.
string GetMostDangerousClass(
struct strEnemiesCount
);
Parameters
strEnemiesCount
A structure that contains a breakdown of the 4 basic class groups and each of their total levels.
Description
Returns a string representing one of the four basic class groups, whose sum of total levels are the greatest. Gives the fighter group a slight edge and considers them slightly more dangerous than the rest of the class groups.
Remarks
Requirements
#include " x0_i0_enemy "
Version
1.61
Example
<nowiki>#include "x0_i0_enemy"
</nowiki>
void main()
{
struct sEnemies strEnemiesCount=DetermineEnemies();
string sClass=GetMostDangerousClass(strEnemiesCount);
}
See Also
| functions: |
author: John Shuell, editors: Lilac Soul, Mistress