I'm writing a little hidden temple script where I want to adventure until beaten up, then do a tiny HP restore (3 HP with Doc Galaktik's Pungent Unguent) and continue. You can adventure at the temple even if beaten up.
But I can't figure out how to stop the script from aborting when I get beaten up. The relevant code fragment, with a debug line, is:
boolean im_not_beat_up;
im_not_beat_up = adventure(1, $location[ hidden temple ] );
echo( "im_not_beat_up = " + im_not_beat_up );
If the adventure() fails, I never see the echo() debug line, it just aborts right there, saying:
Insufficient health to continue (auto-abort triggered).
I searched the forums and saw something to the effect that there was a preferences setting that might avoid aborting on low HP, but I haven't been able to figure it out. I'm using version 8.9 and I have the auto recovery preferences set to:
Stop automation if auto-recovery fails
Auto-recover health at 0%
Try to recover up to 0% health
I've tried some other auto recovery numbers, but it doesn't seem to matter.
Anyway, can anybody tell me what I'm doing wrong?
But I can't figure out how to stop the script from aborting when I get beaten up. The relevant code fragment, with a debug line, is:
boolean im_not_beat_up;
im_not_beat_up = adventure(1, $location[ hidden temple ] );
echo( "im_not_beat_up = " + im_not_beat_up );
If the adventure() fails, I never see the echo() debug line, it just aborts right there, saying:
Insufficient health to continue (auto-abort triggered).
I searched the forums and saw something to the effect that there was a preferences setting that might avoid aborting on low HP, but I haven't been able to figure it out. I'm using version 8.9 and I have the auto recovery preferences set to:
Stop automation if auto-recovery fails
Auto-recover health at 0%
Try to recover up to 0% health
I've tried some other auto recovery numbers, but it doesn't seem to matter.
Anyway, can anybody tell me what I'm doing wrong?