Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LRH on Wed 18/06/2008 02:43:33

Title: Hotspot + Conversation issue
Post by: LRH on Wed 18/06/2008 02:43:33
Alrighty so I've got a little bit of a problem and any help anyone can provide me with would be greatly appreciated. I've made a hotspot over the background, to be specific, its a toy firetruck. The character interacts with the hotspot and is told there is a small ladder in the truck and then is given in the form of a conversation these choices:

"I might wanna pick this up"
or
"I wanna leave this here"

When he picks it up, it is added to inventory, but since the hotspot still exists, he can do this over and over again, but I wouldn't like this to happen. Is there a way via script to delete the hotspot AFTER the character picks up the item?

Sorry, I couldnt find anything like this in the knowledge base. Thank you everyone  :)
Title: Re: Hotspot + Conversation issue
Post by: Matti on Wed 18/06/2008 02:55:21
hFireTruck.Enabled = false;

As for the 'conversation': I'd suggest you run a dialog with a transparent character. Then when choosing "pick up" write: add-inv x and run-script x (for disabling the hotspot).
Title: Re: Hotspot + Conversation issue
Post by: LRH on Wed 18/06/2008 03:04:38
Quote from: matti on Wed 18/06/2008 02:55:21
hFireTruck.Enabled = false;

As for the 'conversation': I'd suggest you run a dialog with a transparent character. Then when choosing "pick up" write: add-inv x and run-script x (for disabling the hotspot).

Thank you very much, I have it now :D