Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverSpook on Thu 23/07/2015 21:21:22

Title: Default Interactions
Post by: SilverSpook on Thu 23/07/2015 21:21:22
Is there a way to make it so that there is a default message when the player does a certain interaction? 

For example, if the player tries to use the hand on anything, the default response is, "I can't pick that up."

Then if you set a specific script for that object or hotspot, it does what it's supposed to, i.e. "You got the key."
Title: Re: Default Interactions
Post by: Khris on Thu 23/07/2015 22:32:15
Yes, this is done via the unhandled_event function. Manual -> Scripting -> Predefined global script functions.
Title: Re: Default Interactions
Post by: SilverSpook on Fri 24/07/2015 09:59:08
Thanks man.