Addon - trying to prevent death by missing a visible enemy

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Stephen2
Wayist
Posts: 24
Joined: Sun Jun 08, 2014 12:40 am

Addon - trying to prevent death by missing a visible enemy

#1 Post by Stephen2 »

So I died 2-3 times as an Archmage, because I was using the arrow keys to move (not auto-explore), and didn't notice an enemy, or got lazy...

Anyway, this addon detects if you're moving with arrow keys, and if enemies are visible pops up a Confirm dialog before processing the move.

Forced, or otherwise skill based moves (phase door/teleport) don't trigger the dialog.

https://te4.org/games/addons/tome/no_mo ... my_visible


Would really like to know if there's a better way to code this thing, I've not done any LUA, or TE4 modding before...

Stephen2
Wayist
Posts: 24
Joined: Sun Jun 08, 2014 12:40 am

Re: Addon - trying to prevent death by missing a visible ene

#2 Post by Stephen2 »

1.1.0:
- included wait "5" key
- included checking for projectiles

Stephen2
Wayist
Posts: 24
Joined: Sun Jun 08, 2014 12:40 am

Re: Addon - trying to prevent death by missing a visible ene

#3 Post by Stephen2 »

1.2.0:
- added configuration settings

This is so I can play other classes (e.g., Brawler) who don't want an annoying popup on MOVE every turn, but you still definitely don't want to die because you pressed the "5" key by accident

Stephen2
Wayist
Posts: 24
Joined: Sun Jun 08, 2014 12:40 am

Re: Addon - trying to prevent death by missing a visible ene

#4 Post by Stephen2 »

1.3.0:
- added worldmap warning as separate config item

Because I hate those overworld patrols and find them very tough, and also easy to miss... One wrong step with one visible and you're trapped, so this setting helps you be careful when they're around

Stephen2
Wayist
Posts: 24
Joined: Sun Jun 08, 2014 12:40 am

Re: Addon - trying to prevent death by missing a visible enemy

#5 Post by Stephen2 »

1.4.0:
- added 'Ignore Doomed shadows' as separate config item

These pervasive little buggers can be ignored

Post Reply