Page 1 of 1

(R)est: how long do you want to rest?

Posted: Thu Oct 28, 2010 10:23 pm
by PowerWyrm
Currently, resting is automatic. You will rest as long as there's no hostile monster around and your HP/MP are less than your maximum.
In beta 13, Teleport to Angolwen takes 50 turns to trigger... I can tell you it's starting to be really boring to press 50 times the "5" key to trigger the talent. Rest should allow you to enter a number of turns to bypass the fact that your HP/MP are restored to their max.

Re: (R)est: how long do you want to rest?

Posted: Sat Oct 30, 2010 6:30 pm
by yufra
Agreed. I'll tinker with this a bit.

Re: (R)est: how long do you want to rest?

Posted: Sat Oct 30, 2010 7:10 pm
by yufra
If you want to add this to mod/class/Game.lua at the end of "self.key:addCommands" you can see if that is what you want. The key binding is Ctrl+r, and can be made more permanent later.

Code: Select all

		[{"_r","ctrl"}] = function()
			local q = engine.dialogs.GetQuantity.new(
				"Resting", "How many turns to rest?",
				1, nil, function(qty)
				self.player:restInit(qty)
			end)
			self:registerDialog(q)
		end,

Re: (R)est: how long do you want to rest?

Posted: Sat Oct 30, 2010 7:32 pm
by Zonk
Yeah, noticed this.
Maybe it would be better to simply make you keep resting until you are teleported back? Basically, if you have a recall-type condition, that would make rest NOT stop.