counting deaths
Moderator: Event DM
-
- Scholar
- Posts: 1206
- Joined: Fri Jan 14, 2005 6:10 pm
counting deaths
I'd like to count creature deaths from encounters without modifying the creature themselves. Is there a good way to do this?
Whenever a creature dies it speaks a silent string that you should be able to use GetListenPatternNumber(); function to retrieve. I'm not sure if this will work for what you want though, because as far as I know it would require an invisable creature and you can't determine the specific creature that died.
I believe the pattern number is 3, but you should check that yourself.
I'm also not positive on the range of this, I think one is ...SILENT_TALK and the other is ...SILENT_SHOUT. Either way the ListenPattern with the highest matching number is the only one that GetListenPatternNumber() will return.
I believe the pattern number is 3, but you should check that yourself.
I'm also not positive on the range of this, I think one is ...SILENT_TALK and the other is ...SILENT_SHOUT. Either way the ListenPattern with the highest matching number is the only one that GetListenPatternNumber() will return.
- Aloro
- Team Member; Retired with Honors
- Posts: 12805
- Joined: Sat Dec 28, 2002 5:11 am
- Location: Rainbow's End
- Contact:
Re: counting deaths
Not that I know of. We typically use the OnDeath event handler (note that UDE OnDeath events don't fire all the time, so you should not replace OnDeath handlers with UDEs).apandapion wrote:I'd like to count creature deaths from encounters without modifying the creature themselves. Is there a good way to do this?
- Aloro
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.
- Psyco
- Elder Sage
- Posts: 3288
- Joined: Mon Jun 30, 2003 10:05 pm
- Location: New Zealand (NZDT, +12 GMT)
- Contact:
For what purpose?
If it is not actually going to be used ingame but instead is just going to be used for informational purposes to see what areas are being frequented then you can just parse the log file.
No need to modify any scripts IG.
If you actually plan on dynamically using that info IG, then the log file method is out unless you automate it and store the parse info in a database which is referenced in your ingame scripts.
Thats the only method I can think of that will involve no editing of current creatures or current scripts. I am not saying however that this is the best method.
If it is not actually going to be used ingame but instead is just going to be used for informational purposes to see what areas are being frequented then you can just parse the log file.
No need to modify any scripts IG.
If you actually plan on dynamically using that info IG, then the log file method is out unless you automate it and store the parse info in a database which is referenced in your ingame scripts.
Thats the only method I can think of that will involve no editing of current creatures or current scripts. I am not saying however that this is the best method.
Player Housing info - This answers most questions people have. Read this before asking.
-
- Scholar
- Posts: 1206
- Joined: Fri Jan 14, 2005 6:10 pm
-
- Lord of Blithering Idiots
- Posts: 111
- Joined: Tue Jun 08, 2004 3:15 am
- Location: Florida
- Contact: