GUI template suggestion

Started by Hollister Man, Mon 07/07/2003 19:50:30

Previous topic - Next topic

Hollister Man

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
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

Scorpiorus

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

Hollister Man

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.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

am

If you limit the number of bags you can create a character for each bag and use it's inventory

Hollister Man

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.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

am

Well, as far as I remember from older Ultima games, you could put a bag inside a bag so there was no actual maximum ...

Hollister Man

Well, I've only played 9, which won't allow that.  There are only about eight bags in the game anyway.  :)
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

SMF spam blocked by CleanTalk