GetMostDangerousClass

From NWN Lexicon
Jump to: navigation, search



Contents

[edit] GetMostDangerousClass(struct)

Use the four archetypes to determine the most dangerous group type facing the NPC.

string GetMostDangerousClass(
    struct strEnemiesCount
);

[edit] Parameters

strEnemiesCount

A structure that contains a breakdown of the 4 basic class groups and each of their total levels.


[edit] 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.



[edit] Remarks

[edit] Requirements

#include " x0_i0_enemy "

[edit] Version

1.61

[edit] Example

<nowiki>#include "x0_i0_enemy"
</nowiki>
void main()
{
   struct sEnemies strEnemiesCount=DetermineEnemies();
 
   string sClass=GetMostDangerousClass(strEnemiesCount);
}

[edit] See Also

functions: 

TalentAdvancedProtectSelf



 author: John Shuell, editors: Lilac Soul, Mistress
 

Personal tools
Categories