Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 03/01/2004 11:30:55

Title: Scriptnames for Objects
Post by: on Sat 03/01/2004 11:30:55
Hi,

I want to start a dialog with a character embedded in the background.
first I made it an object with the right area but when i wrote the script i had to ad the scriptname of this object.
How do i give this object a scriptname or do I have to make a new character?

Thanx
Title: Re:Scriptnames for Objects
Post by: Ishmael on Sat 03/01/2004 11:38:03
Objects are room independent, interactable items, that are controlled via either the interaction editor or script in the current room. Objects do not have a scriptname. Objects cannot "talk" either. Ofcource, you can make an object talk with overlays or the DisplaySpeechAt command.

Characters then, are global, and have a scriptname, and they can talk.

If you want a room item talking, and you want it easy, use a character, or the DisplaySpeechAt command with a character in another room, and the suitable talking color, to display speech above the object, and possible the AnimateObject command to make it move it's mouth or whatever.
Title: Re:Scriptnames for Objects
Post by: on Sat 03/01/2004 11:53:34
i think im gonna make a character thats completely invisible and im gonna place it over the object.
Maybe thhis will work
thanx for yur help mate