If you have programming knowledge, you can build your own LUA script engine by using this. The developer of NTHack took this source code and made NTHack with it.
https://github.com/gamebooster/dota2-lua-engine
https://github.com/gamebooster/dota2-lua-engine