Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 24/05/2004 01:58:55

Title: How do I remove an object in room 6 from room 7?
Post by: on Mon 24/05/2004 01:58:55
Here's what I would like to accomplish. There is an object 0 in room 6. If you use object 0, it is removed from the room and you gain inventory item 1. In room 7, there is a button. If you push the button, if object 0 exists in room 6, it is removed from the room and you get a message informing you. If you push the button and item 1 is in your inventory, it is removed from your inventory and you get the same message. If object 0 is not in room 6, and if item 1 is not in your inventory, you get no message. How would I accomplish these?
Title: Re: How do I remove an object in room 6 from room 7?
Post by: Moox on Mon 24/05/2004 02:28:46
Global ints

Before fadein in room 6 check what the global int is, if its 1 have the item showing if 0 have it hidin, look in manual for more info on global ints
Title: Re: How do I remove an object in room 6 from room 7?
Post by: Kweepa on Mon 24/05/2004 15:51:34
To answer just the Subject, you can use the new OtherRoom plugin:
http://www.agsforums.com/yabb/index.php?topic=14203.0

Steve