Tracking kills?
Moderator: Eowul
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Tracking kills?
Using webui or perhaps in-game means, is there a way to keep running stats on total kills, kills by race, species, etc.?
Re: Tracking kills?
Google Analytics tagging might work.. Just searching ideas atm.
Re: Tracking kills?
It's fairly easy in the web client.
Here's a quick example that should work.
Create a regexp trigger
Pattern: ^You killed the (.*) ([a-z]+).$
Here's a quick example that should work.
Create a regexp trigger
Pattern: ^You killed the (.*) ([a-z]+).$
Code: Select all
gwc.userdata.kills = gwc.userdata.kills || {};
var race = args['2'];
function increment(type) {
gwc.userdata.kills[type] = (gwc.userdata.kills[type] || 0) + 1;
return gwc.userdata.kills[type];
}
var total = increment('total');
if (total % 100 == 0) {
gwc.output.append('You have killed ' + total + ' enemies', 'red');
}
total = increment(race);
if (total % 10 == 0) {
gwc.output.append('You have killed ' + total + ' ' + race, 'red');
}
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/