Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Hollister Man on Mon 07/07/2003 19:50:30

Title: GUI template suggestion
Post by: Hollister Man on Mon 07/07/2003 19:50:30
I have been playing Ultima 9: Ascension for a while now, and I thought it might be interesting to have a limited inventory size, but you can add "bags" that only take up one inventory space but contain ten more.  That way, you really need to decide if something is necessary before picking it up, or you can drop it.  I could prolly figure it out on my own, but since I have no SPECIUFIC use for it right now, I thought I'd just put it out there for you all.

SIDE POINT: Have you ever got ticked off when you tried to do something logical, like cut a rope or something and the programmer never thought of it, so you get a generic error message?  I hate that.  I tried to cut a wooden fence I needed to get through with my battle axe, and it bounced.  :P
Title: Re:GUI template suggestion
Post by: Scorpiorus on Wed 09/07/2003 19:34:11
Yep, making such an inventory is possible. First you have to limit max inventory items one can hold (some GlobalInt). Then once he takes a bag it increases the limit appropriately.

-Cheers
Title: Re:GUI template suggestion
Post by: Hollister Man on Thu 10/07/2003 02:06:58
Yes, but it is not quite that easy.  The bags are like additional inventories, each holding ten items.  I think this would be pretty hard to do, but maybe storing the numbers in an array and displaying them in a custom GUI.
Title: Re:GUI template suggestion
Post by: am on Thu 10/07/2003 20:27:57
If you limit the number of bags you can create a character for each bag and use it's inventory
Title: Re:GUI template suggestion
Post by: Hollister Man on Fri 11/07/2003 23:56:34
That is another good idea.  The limit to the number of bags is the number of spaces in the original inventory.  In Ultima, you have your toolbelt and your backpack.  Toolbelt is linked to the function keys, f1-f12, so you can use each item quickly.  The backpack has 25 slots.

Thus to copy the GUI exactly you need 37 possible slots.  :)

When I get to it I may try this one.
Title: Re:GUI template suggestion
Post by: am on Sat 12/07/2003 22:06:02
Well, as far as I remember from older Ultima games, you could put a bag inside a bag so there was no actual maximum ...
Title: Re:GUI template suggestion
Post by: Hollister Man on Mon 14/07/2003 23:16:55
Well, I've only played 9, which won't allow that.  There are only about eight bags in the game anyway.  :)