Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 08/02/2004 21:27:18

Title: How So I Make A Global Message Said By A Character?
Post by: on Sun 08/02/2004 21:27:18
Say I've got some Anti-Itch powder as an inventory item. I'd like the main character to say "Aaaaah, that's much better." when he uses it on himself.

I'd use a Global Message to do this, because room specific messages would take way too long to script into each room; but, I'm not quite sure how to change so it looks as if the character himself says it, instead of a greyed box.

???
Title: Re:How So I Make A Global Message Said By A Character?
Post by: Takara on Sun 08/02/2004 22:16:05
I had the same problem, what I did was this...

Set the Look at Item Interaction on the Inventory Item to Run Script.
Then press the Edit Script button and type

DisplaySpeech(CHARID, "Aaaaah, that's much better!");

Hope that helps :)

Takara.
Title: Re:How So I Make A Global Message Said By A Character?
Post by: on Sun 08/02/2004 22:52:25
Aaaaaaaaaand Victory. That worked great. Thanks much.