07-21-2005, 07:54 PM
Olon97,Jul 21 2005, 06:53 PM Wrote:An easier starting point for collecting aggro data, IMO, is the current version of damage meters. Yes, it doesn't handle multiple mobs well, but I would think testing on one mob at a time, recording heal & damage data per player character, then resetting would be a better approach anyway.
Yeah, this sounds like a much better idea. I was simply speaking from a conceptual feasibility standpoint. Wondering if it would be possible to come up with a mod that could reliably gather data through the course of normal gameplay. After looking through the MobHealth2 code, it doesn't actually keep track of separate mobs. It just identifies mobs based on a combination of their name and level and assumes all mobs with the same name and level will have the same HP (which seems to be the correct assumption). This allows is to calculate remaining HP on a mob you target that has already taken some damage, but it doesn't actually track the fact that you may have seen that specific mob before.
It doesn't seem like the scripting interface is very object-oriented at all, so there is no way to compare any sort of unit object by reference (which could help keep track of separate mobs). The only way I can think to even attempt to track multiple mobs is to repeatedly tab through them and track their positions and guess which ones are the same from the last "scan". This is similar to how that mini-map radar mod works (don't remember the name right now), but in the case of that mod, they don't have to figure out which mobs are the same from one scan to the next.
The only way I can think to get a clean set of data is to have a player target the mob from before the pull until the mob is dead (or until you want to stop collecting data). I'd like to keep track of exactly what skills were used in what order so that if we learn more about how aggro works we don't have to throw out all the old data. I'm not sure if there is enough info in the combat log to get this level of detail from other players that are attacking the same mob or not (haven't looked into that yet). I'll dig into this more over the weekend and see what I can figure out.