Shoals Surfer
Posts: 287
Joined: Friday, 19th August 2016, 21:21
Changing shift+direction behavior
Hi, I hope this is the right place to ask.
The current behavior of shift+direction is going in a straight line until I bump into a wall or spot a monster.
I'd like to change it so that it only moves 1 square unless there's a monster in LOS. Is there an option already for this?
If not, I'd like to try writing a lua script for it. Could someone point me in the right direction? Preferably a few pre-existing bits of code dealing with movement and/or monster los detection. I should figure it out from there.
I'd also like to create a script that skips a turn unless there's a hostile monster in los. I suppose if I manage to write the previous one, this would be simple in comparison.
Thanks in advance, guys
The current behavior of shift+direction is going in a straight line until I bump into a wall or spot a monster.
I'd like to change it so that it only moves 1 square unless there's a monster in LOS. Is there an option already for this?
If not, I'd like to try writing a lua script for it. Could someone point me in the right direction? Preferably a few pre-existing bits of code dealing with movement and/or monster los detection. I should figure it out from there.
I'd also like to create a script that skips a turn unless there's a hostile monster in los. I suppose if I manage to write the previous one, this would be simple in comparison.
Thanks in advance, guys
make food great again