Page 2 of 2

Re: QuestByName

Posted: Tue Feb 08, 2011 1:18 pm
by JackBlonder
Version 0.97 is up now.
I could not test the check for full questbook though.
Maybe someone can test it and report any problems.

Re: QuestByName

Posted: Wed Feb 09, 2011 2:20 am
by rock5
No, anything that is not 'false' or 'nil' is considered true.

It looks like haveTarget checks the hp of the target. Obviously the board must not have hp so haveTarget returns false. Oh well, your way works as well. I just liked the idea that haveTarget freshly checks to see if you actually have a target.

Your way you might have to do a player:update() to make sure your targetPtr is up to date.

Re: QuestByName

Posted: Wed Feb 09, 2011 2:36 am
by rock5
JackBlonder wrote:Version 0.97 is up now.
I could not test the check for full questbook though.
Maybe someone can test it and report any problems.
The full quest book works fine but just 1 small thing, you need to break or return once it's full. So,

Code: Select all

			else
				print("Maxim number of quests in questbook!")
				break
			end

Re: QuestByName

Posted: Wed Feb 09, 2011 3:08 am
by JackBlonder
I think it should work without the break but it will do the complete loop (i=1 to availableQuests) so I'll add the break at the next version.