Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: VII Toast on Sun 21/11/2004 20:08:41

Title: I'm not getting an inventory item (Solved)
Post by: VII Toast on Sun 21/11/2004 20:08:41
Can't get it...help-o
Title: Re: I'm not getting an inventory item
Post by: Edwin Xie on Sun 21/11/2004 21:16:19
*Ahem*

// script for object0: Interact object
AddInventory(3);
ObjectOff(0);


Is it like this in your script for interacting with the object?
Title: Re: I'm not getting an inventory item
Post by: VII Toast on Sun 21/11/2004 22:10:27

// script for hotspot1: Interact hotspot
DisplayMessage (2);
AddInventory (3);
ObjectOff (0);
Title: Re: I'm not getting an inventory item
Post by: dreammaster on Sun 21/11/2004 23:38:06
That looks fine. If you're still not seeing the inventory item in inventory after that, it must be some other problem. A few I can think of:

* Perhaps you put the script in the wrong hotspot. Try putting a debug line in the script, such as Display("test"); to make sure the script runs.

* If you're using a custom inventory script, you might want to try reverting back to the built-in one temporarily just to check whether your object is appearing.
Title: Re: I'm not getting an inventory item
Post by: VII Toast on Sun 21/11/2004 23:51:42
Ah! Great. I got it to work.Ã,  don't know what I did, but it works now.

Thanks.

New question: How do you run the game in windowed mode :-\
Title: Re: Run in windowed mode?
Post by: Phemar on Mon 22/11/2004 12:46:29

You go to winsetup and select [] run the the game in windowed.
Title: Re: Run in windowed mode?
Post by: Scummbuddy on Mon 22/11/2004 20:28:50
TerranRich has already mentioned this several times. Do not modify your first post. Replace it please, for it makes everyone else confused. These threads will later be used as reference for anyone searching the forums (or should be doing, at least). If you want to continue your thread, thats fine, but make a new post, not erase an older one in which others have responded to.
Title: Re: I'm not getting an inventory item
Post by: VII Toast on Mon 22/11/2004 23:28:42
Ah, alright. Just on other fourms I have been on, things seem to be bad if I have multiple questions at different times. Then that can be called spamming

Dum dum DUM.
Title: Re: I'm not getting an inventory item (Solved)
Post by: Ashen on Tue 23/11/2004 01:16:12
You could just add the question in the first post, or just leave the first post alone and add it later, like Scummbuddy did in his edit.

Anyway, what exactly was your question (since it's been deleted)?
Do you want to run your game windowed, or one you've downloaded?

Either way, as Zor said, run the setup exe (usually called winsetup.exe), and select 'Run in a window instead of full-screen', then 'Save', or 'Save and Run'. If it's a game you downloaded, and it doesn't have a setup exe, then I think you just have to live with full screen.