I just started to write a little Addon to do AutoCombat similar to how it's done in DCSS. With alot of help from the really nice people on irc.rizon.net/#tome i got it somewhat to work.
Why do you need AutoCombat:
archery is really tedious, so tedious that every bit making it less annoying helps.
What AutoCombat does:
activating the talent checks the area for hostiles, if any are in range use shoot/attack the "closest one" otherwise walk towards it.
How do i use AutoCombat:
extract the zip in your addon folder, create a new character - you will have a new innate talent called "autocombat"
What about the Code?
It's still mostly the tourist example addon, the changes are in talents/tourist.lua; i'm sorry about the terrible documentation :p
TODO:
- remove example code
- FIX: add it to party members (golem, summons, etc.)?
- FIX: some traps trigger errors, i don't think it's related to the talent though rather to the tourist class
- FIX: sometimes alternating between autoexplore and autocombat gives confusing results
- prefer last targeted enemy if possible
MAYBE:
- call autoexplore if no hostiles are in the area (might generally replace autoexplore?)
- make movement safer so you don't lose a turn against a enemy (sidestep if distance is odd, move towards enemy if even)
Greetings Dondy
---
Changelog:
added superloading Player.lua, for all classes
added talent to tourist class
AutoCombat (similar to DCSS)
Moderator: Moderator
AutoCombat (similar to DCSS)
- Attachments
-
- tome-example.zip
- (20.39 KiB) Downloaded 120 times
Last edited by don on Fri Feb 08, 2013 11:06 am, edited 3 times in total.
Re: AutoCombat (similar to DCSS)
Nice start. Might I suggest that you add a particle effect to the targeted enemy? Try something like:Also, initiating auto-explore if you don't see anything may be undesirable. For example, what if you're fighting a stealthy rogue or ghost, or what if something becomes invisible (via rune or talent)? If you're wanting to auto-attack it but you suddenly can't see it, then you probably don't want to go auto-exploring all around the level.
Code: Select all
target:addParticles(engine.Particles.new("notice_enemy", 1))
darkgod wrote:OMFG tiger eye you are my hero!
Re: AutoCombat (similar to DCSS)
Nice, may I suggest uploading it to te4.org ? 

[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
