Login
Remember
IF Answers
Ask a Question

# 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! :)

- quest
- text-processor
- light-and-dark
- objects
- rooms

## 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".

## Related questions

- In a Gamebook, how do I fix that the text processor is not working properly on my version of Quest (I think)?
- How do I get the player out of a dark room if he unwittingly enters one without a light source?
- QuestJS asked for a .quest file and when I save my Quest adventure it saves as a .aslx file
- I want to make a verb that requires to things at once. How do I do this this? [internet version]
- What's a good method when dealing with a ton of objects in Quest?

...