Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Tarlash on Sat 29/05/2004 16:02:49

Title: Problem with non-standard inventory
Post by: Tarlash on Sat 29/05/2004 16:02:49
1. How to make Diablo-2 syle inventory (you know, separated into cells [some items take more than 1 cell] and it is limited).

2.How to make window for selected item (remember Revenants?).

Please help.
Title: Re: Problem with non-standard inventory
Post by: Ashen on Sat 29/05/2004 16:21:04
For the first question, there was a similar thread a while back, but I can't remember if it got sorted out.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=12943.0

For the second one, I think you just use a GUI button and change its graphic using SetButtonPic, and use variables to track which weapon is equipped.

Hope this helps.
Title: Re: Problem with non-standard inventory
Post by: Tarlash on Sun 30/05/2004 07:24:05

QuoteFor the second one, I think you just use a GUI button and change its graphic using SetButtonPic, and use variables to track which weapon is equipped.
I'm so dumb these days...

And about inventory - it is good, but there's still not explained how to make item taking two cells.

Hovewer, thanks Ashen.
Title: Re: Problem with non-standard inventory
Post by: Mr Jake on Sun 30/05/2004 07:33:29
if you set the inventory pic size (I forget how todo it, will look it up later) do 30X30 (for example) then have a 60x30 inventory graphic, wont it automaticly cover 2 'inventory slots' and if you divide your GUI background up into boxs the right size you might get the effect you want.
Title: Re: Problem with non-standard inventory
Post by: Pumaman on Sun 30/05/2004 18:55:27
The supplied inventory system doesnt support variable width items like Diablo 2 uses. You'd be better off scripting your own inventory GUI from scratch.