Solved: Newbie Question: Possible to null a verb?
Ozymandias
04 Aug 2016, 07:13Using text based version.
For more context I have created a candle in the room that has a switch. On is a lit candle, off is unlit. I added a verb to the candle to "Touch flame" which does damage. Problem is when the candle is unlit I set it to print out a message "The candle is not lit" but I still take damage. Don't know how to turn off the verb when the switch is off. Any quick fixes?
Edit: Solved...spent an hour looking at it and realized its an easy fix. Oops. Any tips for future problems similar to this appreciated though.
hegemonkhan
04 Aug 2016, 10:15good job! whether you're doing coding and/or game-making, expect to take hours or even days/weeks, to figure stuff out! This is the very slow learning process/progress of coding/game-making, laughs. Be proud in figuring it out on your own! Though, if something is taking you too long, please ask for help here, no reason to waste more time. Learning (via on your own) is good, but you got to decide, for how long / when is the "cut-off" point, when you then ask for help.
Jay Nabonne
04 Aug 2016, 11:22The main tip I have for debugging Quest (especially logic errors) is to use "msg" (print message) in key points in the script to both show which part of the code is being executed and what the values are. I can't always work out in my head what the code will do, but when I see the values and code flow in the prints, it's conclusive proof one way or the other. :)