Problem with Tutorial "Change/add"
Gary1
25 Feb 2007, 18:28I apologize for not making my poblem clearer in my previous post.
The Exercise 12.5 on page 36 of the Tutorial wants the programmer to update the script with a different response if a player repeats "use defibrillator on Bob."
The answer to the exercise is at 26.1 on page 72, but I do not understand it. I changed Bob's properties to "not dead" as the Tutorial instructs, but I don't know how to cause a different response to display when the player repeats using the defibrillator on Bob.
The Exercise 12.5 on page 36 of the Tutorial wants the programmer to update the script with a different response if a player repeats "use defibrillator on Bob."
The answer to the exercise is at 26.1 on page 72, but I do not understand it. I changed Bob's properties to "not dead" as the Tutorial instructs, but I don't know how to cause a different response to display when the player repeats using the defibrillator on Bob.
Arbutus
27 Feb 2007, 01:53If you change the defibrillator's use script to match that in the tutorial, then you have updated the script with a different response. When the player repeats "use defibrillator on Bob", they will see the response: You’ve already revived him and he probably wouldn’t like it much if you used the defibrillator on him again.
Alex
27 Feb 2007, 11:36Yes, it should probably be made more clear that the script in 26.1 should be entered into the defibrillator's "use" script.