jaynabonne wrote:I think the easiest way is to have the code effectively dim the lamp when you enter the room. Attached is a sample that does that. You can see what I did.
Setup: two rooms, one with an apple and one with a banana. One is dark and the other is "exceptionally dark". In the latter room ("special room"), we don't want the lamp to be able to light it. Both rooms are initially dark, and the lamp is a strong light source. Both rooms have dark descriptions (so you can tell when they're dark.)
The exit in the special room is a weak light source so you can get out.
The trick is in the Scripts tab of the special room. Before entering the room, it "unsets" the lamp's "lightsource" flag. That means that while you're in the room, the lamp is no longer a light source. And then, after leaving the special room, it sets the lamp's ligthsource flag again, so it resumes being a light source for the other room(s). If you had another light source (your magical lamp), it would continue to work fine and would light up the room as desired.
Each is a one-line script. Hopefully when you see them, they will make sense!
HegemonKhan wrote:just to add to Jay's comments:
probably the best way to help people is to send them actual game files, for them to 'play~study', as while you can just copy and paste posted code into a new game's code view mode (deleting all the default code first), this is a bit more steps to do, laughs.
Also, by using~starting up a game file, you can see how it works~plays, in both GUI~Editor and Code (Code View mode), seeing how they convert back and forth (though it can take a bit of time to switch back and forth to match up the GUI~Editor stuff with how it looks in code). So, this is a really great way to learn quest better.
If I had a computer with quest on it that was online, I would be doing this (attaching game files) too, but I still don't (still trying to decide on what to get for a new computer, lol).
-----------
@Jay,
I didn't post sooner, as I wasn't sure if Darkweaver meant 'library' as thinking you sent him~her a library file, or if he~she has a mac~apple and is talking about having to find his~her downloads in the 'library/downloads folder~directory area'.
P.S.
Thanks for helping out Darkweaver, as you do such an excellent, concise, clear, easy-to-understand, step-by-step, and thorough job of it.
Darkweaver wrote:"HegemonKhan"
@Jay,
I didn't post sooner, as I wasn't sure if Darkweaver meant 'library' as thinking you sent him~her a library file, or if he~she has a mac~apple and is talking about having to find his~her downloads in the 'library/downloads folder~directory area'.
P.S.
Thanks for helping out Darkweaver, as you do such an excellent, concise, clear, easy-to-understand, step-by-step, and thorough job of it.
You're welcome.