Need help on Quest Tutorial - "More things to do with objects"
TennoBoy
27 Oct 2016, 02:08I am stuck on the Quest tutorial on the "More things to do with objects" section. Specifically the "Using the defibrillator" subsection where you have to use the defibrillator to revive Bob and bring him back to life. When bringing him back to life you put in this message here.
http://docs.textadventures.co.uk/quest/tutorial/Use3.png
Then when verifying it, when you revive Bob when he is alive, it comes up with the same text as I posted above. The tutorial expects me to know what to do so it says something else when I try to revive him when he is alive. However...I don't know what to do. I managed to get through the tutorial this far without getting stuck, but now I have hit a brick wall.
Come someone please help me? How do I make the text output say something along the lines of "Bob is alive so you don't need to use the defibrillator now" when I use it on Bob when he is alive?
Here is the tutorial to get a better understanding of what I'm talking about: http://docs.textadventures.co.uk/quest/tutorial/more_things_to_do_with_objects.html
Pertex
27 Oct 2016, 05:41You must first check in your script whether the attibute "alive" is set. Check the next chapter "Using functions"! The screenshot there is showing the correct script :-) http://docs.textadventures.co.uk/quest/tutorial/Functionrevive.png
hegemonkhan
27 Oct 2016, 05:43yet again, the 'saying/defibrilator/troll/bob' Command section in the tutorial baffles another new person, lol (don't worry, you're in a long line of new people being baffled, myself included 4 long years ago when I found quest and knew nothing of coding). This stuff about using a Command and the 'if' concept/script is probably the most advanced and hardest part of the tutorial.
see these links, to hopefully get help (and notice the number of new people needing help on it!):
http://textadventures.co.uk/forum/quest/topic/5365/talking-to-characters#37230 (guide on the 'saying/defibrilator/troll/bob' section of the tutorial and my old completed tutorial game file)
http://textadventures.co.uk/forum/quest/topic/5365/talking-to-characters (the more helpful posts for the person I was helping is quite a bit of ways further down, so skim-scroll downwards to the posts that help you, and you may want to read all the posts here to get hopefully a good understanding of all of it --- though it's quite a few posts and quite a bit to read and may be a bit daunting and overwhelming, but I think it'd still be helpful to read through all the posts, despite it)
http://textadventures.co.uk/forum/quest/topic/rbwbbe8h30wpfqxbxoxcjw/newbie-help-tutorial-saying-command-doesnt-work
http://textadventures.co.uk/forum/quest/topic/ai15kpu_w0auda3jlex1ca/custom-commands-question
ask if you got any questions or need help stuff or explanation with anything.
also, you'll want to try to learn this stuff, as it's the 'bread and butter' of quest programming/game-making, letting you do 90% of everything you want to do in your game, Attribute (and the 'set a variable or attribute' Attribute Script) and the 'if' Script:
http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk
understanding the 'if' concept and its scripting and Attributes and their usage, really opens up a ton of cool stuff to do for your game making.

EmmaCreative
04 Nov 2016, 05:59You're not alone. I had the exact same question a few months ago, lol. Someone told me the answer that we are supposed to know is actually shown in the next section underneath.