Script to print an object's "look at" text?

CarmenK72
02 Sept 2016, 22:50http://i.imgur.com/KJBHoFd.png
Pretty much, in a certain room, I want any "look at" commands to just return "you can't see anything in this darkness!" because the room is pitch-black and it would kill immersion to be able to plainly see an object there. That worked, but I found that it also makes it so any "look at" command for the rest of the game just returns a blank line. To fix that, I need a script that basically just returns the basic "look at" text/script. Does anyone know how to make this happen?
hegemonkhan
03 Sept 2016, 07:08see if you can use the 'darkness' feature, and hopefully the 'look/lookat' Command/Verb/whatever, won't bypass it, lol
http://docs.textadventures.co.uk/quest/attributes/lightstrength.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
http://docs.textadventures.co.uk/quest/functions/corelibrary/setlight.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/setdark.html
you could also:
use the built-in 'visible' Boolean Attribute for your Object you don't want to be seen (assuming this too isn't bypassed by the 'look/lookat' Command/Verb/whatever: http://docs.textadventures.co.uk/quest/attributes/visible.html
use the built-in 'scenery' Boolean Attribute for your Object you don't want to be seen (assuming this too isn't bypassed by the 'look/lookat' Command/Verb/whatever): http://docs.textadventures.co.uk/quest/attributes/scenery.html and http://docs.textadventures.co.uk/quest/tutorial/interacting_with_objects.html
possibly, there's controls/ways to determine what gets shown (and/or the 'populate/format' controls/ways/functions of how it works in the built-in code) in the pane, and thus probably/hopefully with the 'look/lookat' Command/Verb:
http://docs.textadventures.co.uk/quest/functions/corelibrary/showroomdescription.html
http://docs.textadventures.co.uk/quest/functions/corelibrary/formatobjectlist.html
http://docs.textadventures.co.uk/quest/asl_requirements.html ( see 'GetPlacesObjectsList' )
or, if there's no other way, you can alter its under-lying code:
filter -> show library elements -> up above in the "tree of stuff", find the 'look/lookat' Command/Verb/whatever and click on it to highlight it -> on the right side, click on the 'copy' button in the upper right corner -> and then add in an 'if' Script to separate into a scripting for when the room is dark and a scripting for when it's not.
also here's a library for creating a 'portable lantern', though it may be for an earlier version of quest, and would need some of its code syntax to be changed to the current code/syntax used for the most recent version of quest. It's mostly just the the List/Dictionary syntaxes.
http://textadventures.co.uk/forum/samples/topic/4610/portable-lantern (the 'portable lantern' library)
these links are actually quite useful:
http://docs.textadventures.co.uk/quest/upgrade_notes.html (upgrade notes/version history)
https://blog.textadventures.co.uk/2012/12/03/quest-5-3-beta-is-now-available/ (scroll down, to see everything, as it discusses the new things added at this now old version level)
at least fo those who've been around awhile, having used quest with earlier versions.
The Pixie
03 Sept 2016, 07:29I would suggest just reading this tutorial, which explains how light and dark work in Quest.
http://textadventures.co.uk/forum/samples/topic/5571/how-to-hande-light-and-darkness
hegemonkhan
03 Sept 2016, 07:30I thought there was a light and dark guide... but my quick search for it failed. Thanks for posting the link Pixie.
Err... my quick search didn't involve the 'library and code samples' forum (I just, searched/looked at, the doc site... whoops)

CarmenK72
04 Sept 2016, 21:00Thanks hege! I went for the last option and while a little complicated at first, it worked perfectly! I appreciate all of the solutions you've been giving me lately.