Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: muffinzown on Fri 15/06/2007 22:26:54

Title: Problem with object
Post by: muffinzown on Fri 15/06/2007 22:26:54
I recently tested my game to recap what i had changed. I got to a certain part in my game where i needed to pick up a key to open a door. I clicked on the key and the game minimizes and an error occurs saying:
" An error has occured. Please contact the game author for support as this is likely to be a scripting error and not a bug in AGS.
(ACI version 2.72.920)

inGlobal script(line 60)

Error: ObjectOff: invalid object specified "

I decided to come here first to see if i may recieve any help. thx
Title: Re: Problem with object
Post by: Ashen on Fri 15/06/2007 23:20:52
What's the interaction that's supposed to run? I'd guess it's an Interaction Editor command.
Are you turning off the right Object - remember that Object numbering starts from 0; so if there's only one Object in the room, it's object 0, not object 1. If there are 2 objects, the higest valid number is 1, etc.