Dungeon Dilettante
Posts: 2
Joined: Wednesday, 18th April 2012, 12:43
Auto consume lua script
Hi all,
I've been thinking about writing an "auto consume" in a similar vein to the autofight lua script to:
Confirm nothing dangerous nearby
Look for non-poison corpses within view
Walk to the nearest
Chop it up
If less than Very Full, eat chunks until we're good
I set out to write it and ran into a few problems. As far as I can tell, there's no way to see corpses within view. (ie: there's no equivelent to monster_at). The dgn functions do appear to support it, but those are only for wizard mode.. correct?
Also, I can't see how to check if a corpse is poison. Could anyone point me in the right direction?
Thanks in advance!
I've been thinking about writing an "auto consume" in a similar vein to the autofight lua script to:
Confirm nothing dangerous nearby
Look for non-poison corpses within view
Walk to the nearest
Chop it up
If less than Very Full, eat chunks until we're good
I set out to write it and ran into a few problems. As far as I can tell, there's no way to see corpses within view. (ie: there's no equivelent to monster_at). The dgn functions do appear to support it, but those are only for wizard mode.. correct?
Also, I can't see how to check if a corpse is poison. Could anyone point me in the right direction?
Thanks in advance!