Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Oasis on Thu 06/04/2006 18:43:49

Title: How do i stop my character talking to someone after i've spoken to them? (SOLVED
Post by: Oasis on Thu 06/04/2006 18:43:49
Basically my character is talking to someone and halfway through the conversation he dies. But when i click on him after this happens they start the conversation up again! How do i stop this happening? I had a look through the manual but i cant seem to find out what to do!
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: A�rendyll (formerly Yurina) on Thu 06/04/2006 19:06:10
Can you describe what you mean by your character "dying"? Has he got Health or something? If so, are you sure you didn't put anything silly in the interaction editor/script?
If not, try explaining the problem a bit more.

~Yurina
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Cino on Thu 06/04/2006 19:10:17
I think he's talking about the other guy dieing, not the main character. But here's how I would do it - set a variable "guydead" or something like that to true after the guy has died and check the variables value before starting the conversation. Not sure if it's the best solution though.
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Oasis on Thu 06/04/2006 19:34:50
I didnt mean the main character dying, i meant the other guy!
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Ashen on Thu 06/04/2006 19:40:31
Quote from: Cino
But here's how I would do it ... Not sure if it's the best solution though.

Can't really think of any other way to do it - you could move the NPC to another room and shift a dummy character in (or turn on an object) to represent the body, but a variable is much easier. If the character changes view when it dies, you could use the Character.View property, but that's just a variable anyway.
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Oasis on Thu 06/04/2006 19:56:03
Yeh I might have to turn the character into an object, and stop interacting with it!
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Ashen on Thu 06/04/2006 20:04:02
Why? Is using a variable not working?
The Interaction Editor commands (if you've still reluctant to use sctripting) would be 'Game - Set Variable Value' (when the charcter dies) and 'Conditional - If variable is set to a certain value' (to check whether or not to allow the interaction).
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Oasis on Thu 06/04/2006 20:14:54
Yes it worked! Thanks for your advice ashen! All i had to do was set the variable! I can finally get on with my game! Oh yeh and how do u take screen shots because i would like to advatise my game on the other forum! Thank you!
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Saberteeth on Thu 06/04/2006 20:16:04
By default F12  ::)
Title: Re: How do i stop my character talking to someone after i've spoken to them?
Post by: Oasis on Thu 06/04/2006 20:17:11
Thanks alot!