Doing some testing for a Lua script (primarily to verify when I need to use extra parens), I encountered an unexpected set of values from the Me.XT... methods. I ran one of my characters over to Mistmoore since the mobs there aggro easily and couldn't harm them. Quickly gathered a few mobs to aggro and then started doing my testing.
The other was
XAssist has a couple methods to use instead. It's XTAggroCount allows for values above 100 (though still is only less than) and XTFullHaterCount doesn't care if the current target is also on the XTarget list. Should the documentation for the Me methods direct creators to the XAssist methods?
Me.XTAggroCount
returns 0. This makes sense based on the description (only counts mobs less than the aggro value; defaults to 100), but not from a functionality perspective. What's the reasoning behind "less than" as opposed to "less than or equal to"?The other was
Me.XTHaterCount
. This value was always one less than the actual number of mobs on XTarget. Based on documentation elsewhere (see below), it appears that if one of the XTarget mobs is also the current target it isn't counted (I can't find documentation to explicitly substantiate this, though testing suggests it's true). Why?XAssist has a couple methods to use instead. It's XTAggroCount allows for values above 100 (though still is only less than) and XTFullHaterCount doesn't care if the current target is also on the XTarget list. Should the documentation for the Me methods direct creators to the XAssist methods?