Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dreadus on Thu 08/12/2005 14:24:08

Title: SCUMM style "give" command.
Post by: Dreadus on Thu 08/12/2005 14:24:08
Okay. I'm having trouble scripting a "give" feature. I'm currently using a "monkey island" template which has been modified heavilly to become a day of the tentacle/maniac mansion style interface with multiple characters being controlled at once.

I'm stuck on implementing a "give" command. Everything else seems to work just fine except give. I know you cant tell much without seeing my script, but if anyone has made an item interchange program, could you share exactly what you did to do it, as it will likely help me to script mine.
Title: Re: SCUMM style "give" command.
Post by: Radiant on Thu 08/12/2005 15:30:49
What precisely is the problem? Have you tried

GetCharacterAt (mouse.x, mouse.y)

to find out which character you're pointing at?
Title: Re: SCUMM style "give" command.
Post by: Dreadus on Fri 09/12/2005 16:17:18
its all good, i managed to figure it out. It was pretty simple to implement, but keeping the status bar clean was a bitch. I basically had to use a different mousemode than what i was originally using, to allow "activeinventory" to work.
Title: Re: SCUMM style "give" command.
Post by: Ashen on Sat 10/12/2005 12:37:53
If you have any more problems, there's a nice, current SCUMM GUI tutorial HERE (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=22525.0). It might be good for some pointers, even if you'd rather work things out for yourself.
Title: Re: SCUMM style "give" command.
Post by: Dreadus on Sat 10/12/2005 19:50:41
Nah, thats the tutorial i used in the beginning, that one didnt work as well as the system i now have in place.
I just wanted so see, literally, how people actually handled give functions and try to somehow apply their ideas to my script.