FR: autoexplore HP/MP limit


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Swamp Slogger

Posts: 176

Joined: Wednesday, 11th September 2013, 04:59

Post Wednesday, 3rd February 2016, 19:02

FR: autoexplore HP/MP limit

I'd like two new options, autoexplore_hp_limit and autoexplore_mp_limit - both would accept percentage from 0 to 100.
If HP/MP would be below limit while autoexplore key is hit, autoexplore would rest until limit is reached and then autoexplore (if resting is not interrupted).
Default could be 0 (=current behavior).
Characters that cannot regenerate HP/MP (mostly DDs) would ignore this.

edit: Nevermind, looks like this can be already achieved with

rest_wait_percent = 100
When resting, if your HP or MP is below this percentage of being full,
it will stop resting when this percent of maximum HP or MP is refilled.
Resting after this point will still rest up to 100%.

explore_auto_rest = true
If true, auto-explore waits until your HP and MP are both at
rest_wait_percent before moving.

Vestibule Violator

Posts: 1601

Joined: Sunday, 14th July 2013, 16:36

Post Wednesday, 3rd February 2016, 19:10

Re: FR: autoexplore HP/MP limit

You can almost do this already:

  Code:
rest_wait_percent = 100
        When resting, if your HP or MP is below this percentage of being full,
        it will stop resting when this percent of maximum HP or MP is refilled.
        Resting after this point will still rest up to 100%.

explore_auto_rest = false
        If true, auto-explore waits until your HP and MP are both at
        rest_wait_percent before moving.
User avatar

Slime Squisher

Posts: 342

Joined: Friday, 2nd May 2014, 15:02

Post Thursday, 4th February 2016, 13:36

Re: FR: autoexplore HP/MP limit

doesnt seem to work in 0.16 or am i doing it wrong?
[09:23] <Sequell> kroki is a greatplayer!
[09:23] <Sequell> kroki is a greaterplayer!
[03:57] <Sequell> kroki is a polytheist!
[21:53] <Sequell> kroki is a greatberserker!
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Thursday, 4th February 2016, 13:47

Re: FR: autoexplore HP/MP limit

kroki wrote:doesnt seem to work in 0.16 or am i doing it wrong?


Both options were added in 0.17.
User avatar

Slime Squisher

Posts: 342

Joined: Friday, 2nd May 2014, 15:02

Post Thursday, 4th February 2016, 14:05

Re: FR: autoexplore HP/MP limit

neil wrote:
kroki wrote:doesnt seem to work in 0.16 or am i doing it wrong?


Both options were added in 0.17.


is there a workaround for 0.16 ?
[09:23] <Sequell> kroki is a greatplayer!
[09:23] <Sequell> kroki is a greaterplayer!
[03:57] <Sequell> kroki is a polytheist!
[21:53] <Sequell> kroki is a greatberserker!
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Thursday, 4th February 2016, 14:43

Re: FR: autoexplore HP/MP limit

kroki wrote:
neil wrote:
kroki wrote:doesnt seem to work in 0.16 or am i doing it wrong?


Both options were added in 0.17.


is there a workaround for 0.16 ?


It's possible to write a lua function that checks your current HP/MP then sends either 'o' or '5'. Then macro the o key to ===yourfunctionname .

Alternatively, you could try cherry-picking these two commits into 0.16 and recompiling: https://github.com/crawl/crawl/commit/f03880292385 https://github.com/crawl/crawl/commit/705641cb2bcc . However, that would be missing several bug fixes that have been applied since then.

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 85 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.