questions

Forum > Questions > Fighting FAQ
Reply To Thread (login)
Ender [2]
Administrator
2010-12-18 15:14:03
[13 years, 342 days ago]

Emanuel and I were discussing how the new fighting systems work on IRC earlier today, so rather than trying to re-explain it, here's the log. Hopefully this will answer most questions, but ask away of course if something is still confusing.

[17:58:06] <AquaRegia> I have a request on the fight reports Ender
[17:58:45] <AquaRegia> don't make it reset unless you explicitly tell it to do so (or log out)
[17:58:47] <Ender> it's mostly done, so let's hear if it's already like that or hard to add
[17:58:57] <Ender> it's already like that :)
[17:59:01] <Ender> you can attacks from the past 7 days
[17:59:02] <AquaRegia> sweet \o/
[17:59:11] <Ender> and also -when- they happened
[18:00:00] <AquaRegia> ah, I missed that in bots2
[18:00:55] <AquaRegia> so you get a "detailed" log about every attacker?
[18:01:08] <Ender> yeah basically every "group" of attacks
[18:01:21] <Ender> where a group is defined as a series of attacks without a break in attacks greater than 15 minutes
[18:01:33] <AquaRegia> even if they are from different bots?
[18:01:43] <Ender> per bot
[18:02:02] <Ender> where a group is defined as a series of attacks from the same bot without a break in attacks greater than 15 minutes
[18:02:05] <Ender> ^ fixed :)
[18:02:08] <AquaRegia> ^^
[18:02:17] <AquaRegia> what about attacks shorter than 15 minutes?
[18:02:39] <Ender> they get grouped together
[18:02:45] <Ender> e.g. you won 3 and lost 4
[18:02:45] <AquaRegia> ah
[18:02:51] <Ender> gained x kudos
[18:02:52] <Ender> or lost
[18:02:55] <Ender> gained x exp
[18:02:57] <AquaRegia> like in bots2?
[18:03:00] <Ender> yeah
[18:03:53] <AquaRegia> how are you implementing the rape limit?
[18:04:23] <AquaRegia> I think it was "weird" in bots 2
[18:04:30] <AquaRegia> if you attacked someone right after midnight
[18:04:36] <AquaRegia> you'd have to wait almost 48 hours for a reset
[18:05:33] <Ender> it's fine-grained as possible in bots4
[18:06:36] <Ender> you can attack a bot so long as the number of attacks you've made on that bot in the past 48 hours is not greater than or equal to the limit based on that bot's level
[18:07:04] <Ender> meaning of course each attack is logged
[18:07:46] <AquaRegia> so everytime you try to fight someone it iterates the list, removes every entry that's older than 48 hours, and then checks the length of the list?
[18:08:30] <Ender> it just counts how many times you've attacked that bot and sees if it's greater than or equal to the limit
[18:08:49] <Ender> the garbage collection/pruning will be done with an hourly or daily cron job
[18:09:00] <AquaRegia> ah, ok
[18:09:01] <AquaRegia> awesome
[18:09:02] <Ender> and will actually keep attacks up to a week old (for the history)
[18:09:26] <AquaRegia> you should put up a bulletin board or something
[18:09:31] <AquaRegia> with "Rapist of the week" and stuff like that :P
[18:09:53] <Ender> ah cool idea, this setup does allow for some interesting statistics
[18:10:04] *** Rames (~Disillusi@d337.ip15.netikka.fi) has joined #bots4
[18:10:31] <Ender> i think i will just post a log of this chat on the forums to explain how the new system works
[18:10:39] <AquaRegia> sounds good


 
Forum > Questions > Fighting FAQ
Reply To Thread (login)