[1.0.4] Auto-Advance/Attack Addon
Posted: Mon Jun 10, 2013 9:48 am
A small addon that adds an action that automatically walks PC towards the nearest enemy and attacks him.
It should be useful for melee characters that are tired of clearing rooms filled with low-level enemies like rats, since with this addon you can just mash X to clear the room.
You can change the shortcut in Key Configuration menu under Actions group.
I don't take any responsibility for any accidental deaths caused by recklessly using my addon.
Download it here: http://te4.org/games/addons/tome/auto-advance-action
Known Issues:
* PC doesn't approach enemies properly if there are obstacles in the way.
To other addon makers:
I'm still not familiar with ToME scripting very well. Right now I calculate the direction to move towards the enemies using "util.getDir" but that doesn't work when enemy stands around the corner.
Is there a better function to calculate direction of the next step to take when moving from A to B?
It should be useful for melee characters that are tired of clearing rooms filled with low-level enemies like rats, since with this addon you can just mash X to clear the room.
You can change the shortcut in Key Configuration menu under Actions group.
I don't take any responsibility for any accidental deaths caused by recklessly using my addon.

Download it here: http://te4.org/games/addons/tome/auto-advance-action
Known Issues:
* PC doesn't approach enemies properly if there are obstacles in the way.
To other addon makers:
I'm still not familiar with ToME scripting very well. Right now I calculate the direction to move towards the enemies using "util.getDir" but that doesn't work when enemy stands around the corner.
Is there a better function to calculate direction of the next step to take when moving from A to B?