View Single Post
01/09/16, 07:10 AM   #8
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
Originally Posted by coolmodi View Post
All those generic mobs like "Skeleton Archer" don't, but special ones, like most bosses, or generally the ones with "unique" names also have their gender appended to the name with ^F or ^M. But in any case it should filter duplicate names I guess, which is the important thing.

Every player should have ^Fx or ^Mx, out of hundreds not a single one didn't have an x, no clue what that x is for though. The few world bosses I checked didn't have it, only ^F or ^M, but can't say if that is a general pattern or not. The boss in the screen on my addon's page also has only ^M though. This needs some investigation
Like you said, only players seem to have the 'x', but I wouldn't count on normal mobs not having a gender tag. For example the generic resource guards in Cyrodiil have names like "Covenant Honor Guard^M".

The question is, why do you even need the function you posted?
You can easily get that information without keeping a list.

Lua Code:
  1. isPlayer = (unitName:find("%^.x") ~= nil)
  2. isGrouped = IsPlayerInGroup(zo_strformat("<<1>>", unitName))

Last edited by sirinsidiator : 01/09/16 at 07:13 AM.
  Reply With Quote