Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Hollister Man on Fri 01/08/2003 14:48:27

Title: Checking number of INV items at runtime?
Post by: Hollister Man on Fri 01/08/2003 14:48:27
I have read the manual, but couldn't find quite the right information.  I am trying to switch the inventory icon outside of the GUI, possible using the mouse wheel/keyboard.  Are there any suggestions as to how to code it?  I got it started, but what I tried ended up  crashing the engine.
Title: Re:Checking number of INV items at runtime?
Post by: Ishmael on Fri 01/08/2003 16:11:41
Inventory icon outside of GUI? You mean like the button in Sierra GUI which has the last used inv intem on it, but ouside the main GUI? I got that in my game :D and works well, execpt if you look at objects in the inv but dont select anything, the button comes up anyway... working on it... and might share the code... if I can copy it from my laptop to my internet comp... but elaborate a bit... ;)
Title: Re:Checking number of INV items at runtime?
Post by: on Fri 01/08/2003 21:15:29
Actually I got to thinking about it, and I would need to check WHICH inventory items the player had, and scroll between those items he already has.  Something like "Nextitem" and"previtem"  

It would work like the "right click" in most Adventure games.  The one that cycles through the available cursors.  Well, when the inventory cursor is selected, the wheel would cycle through the available inventory items.

It seems like there would be a quick way, but it don't necessarily mean it IS that way. :)