[1.0.4] Auto-Advance/Attack Addon

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

[1.0.4] Auto-Advance/Attack Addon

#1 Post by Jack Trades »

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?

Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Re: [1.0.4] Auto-Advance/Attack Addon

#2 Post by Jack Trades »

Updated the addon. Fixed some small errors and tweaked the logic a bit.

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: [1.0.4] Auto-Advance/Attack Addon

#3 Post by lukep »

Can't you just use the standard AI move function?

Code: Select all

self:runAI("move_simple")
is it, but you will need to add in a few inputs.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Re: [1.0.4] Auto-Advance/Attack Addon

#4 Post by Jack Trades »

lukep wrote:Can't you just use the standard AI move function?

Code: Select all

self:runAI("move_simple")
is it, but you will need to add in a few inputs.
Thanks, I'll look it up.
I'm just not that familiar with ToME functions.

Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Re: [1.0.4] Auto-Advance/Attack Addon

#5 Post by Jack Trades »

lukep wrote:Can't you just use the standard AI move function?

Code: Select all

self:runAI("move_simple")
is it, but you will need to add in a few inputs.
I looked it up but I have to admit that I have no idea how to properly call runAI, any tips?

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: [1.0.4] Auto-Advance/Attack Addon

#6 Post by lukep »

Ah, not from me. At least not really. I thought Shadow Veil would work as an example, but it just calls the actions directly.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Re: [1.0.4] Auto-Advance/Attack Addon

#7 Post by Jack Trades »

I have a problem with my addon being "wrong version" and forcing players into offline.
I have entered a (seemingly) correct MD5 supplied by te4_log.txt but the game doesn't seem to recognize it.
Any ideas about what I might be doing wrong?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: [1.0.4] Auto-Advance/Attack Addon

#8 Post by HousePet »

Re enter the md5.
My feedback meter decays into coding. Give me feedback and I make mods.

Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Re: [1.0.4] Auto-Advance/Attack Addon

#9 Post by Jack Trades »

HousePet wrote:Re enter the md5.
I did that several times already, that didn't change anything.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: [1.0.4] Auto-Advance/Attack Addon

#10 Post by HousePet »

Could be a side effect of recent website changes then :/
My feedback meter decays into coding. Give me feedback and I make mods.

Doctornull
Sher'Tul Godslayer
Posts: 2402
Joined: Tue Jun 18, 2013 10:46 pm
Location: Ambush!

Re: [1.0.4] Auto-Advance/Attack Addon

#11 Post by Doctornull »

Aww, too bad.

This is a nice addon, but it's not worth losing access to my Item Vault.
Check out my addons: Nullpack (classes), Null Tweaks (items & talents), and New Gems fork.

crapmeiste
Posts: 1
Joined: Sat Feb 27, 2016 4:57 am

Re: [1.0.4] Auto-Advance/Attack Addon

#12 Post by crapmeiste »

Hey, I really like this addon but the problem mentioned above is still there, has anyone found a way to fix it?

Post Reply