Temple Termagant
Posts: 5
Joined: Wednesday, 26th September 2012, 22:19
searching for features with lua
I am playing with a bot to play stone soup, and I want to add some code to make it retreat towards the nearest up stair. I can't use X< or G< because there are enemies around. I could manually search through using view.feature_at, but I'm wondering if there are any lua calls that directly access the X or ctrl-F functionality, ideally returning coordinates I could then take a step towards. Does anything like that exist?