Help! I need to use a candle as a light source in rooms in my Quest text adventure game

0 votes
73 views
asked Oct 7 in Authoring by StillLearning (1 point)

Hi everyone

I am currently making a fantasy game on Quest and a few of the rooms are dark.

I want them to be dark when the player enters so they will have to use a candle (from the inventory) to light the room so they can move on.

I don't want them to be able to move on further into the room without using the candle but I cannot find this in the help documentation (although at the moment I am now going cross eyed with all the research and screenshots!!!)

Thank you in advance! :)

1 Answer

0 votes
answered Oct 10 by hegemonkhan (161 points)

resources on the 'light~dark' feature:

http://forum.textadventures.co.uk/viewtopic.php?f=18&t=4610 (Portable Latern Library by Darkweaver)

http://docs.textadventures.co.uk/quest/functions/corelibrary/setlight.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/setdark.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/setobjectlightstrength.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/setexitlightstrength.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/checkdarkness.html

the key thing is to note there's 3 states of 'lightness~darkness': "weak" (a limited light source), "strong" (light: a light source), and "(empty)" (dark: not a light source). Note the differences amongst the 3 states, especially take note of "weak".

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...