Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Rucksack script

Hello!
I'm here to request a Harvest Moon style Rucksack/Inventory script.
I've search for a long time, through many forums trying to find something similar to this script, but sadly I have been unsuccessful.


THE REQUEST
I want this inventory to have some specific features. Such as:
- Limited amount of items.
- Some items can be stackable and other can't.
- Distinguish between "Weapons/Tools" and "Items".

I've created a picture to show you how this couls look.
ayw0h4.jpg

This picture shows the general outlook of the inventory.
Note that only two kinds of items are used in the game. Weapons and Items. And they are
separatede like shown in the picture


DETAIL INFORMATION

32zt9g6.jpg

As you can see each item has it's own slot. The amount of space in your rucksack can change according
to a variable.
On this case each slot is this image:
21l8ihl.jpg


DIMENSIONS AND SLOTS
There can be only three different sizes for the rucksack:
- Small Rucksack
23u3lgh.jpg
The small rucksack capacity has been changed since 3 stored items may be more
difficult than 2.
This image also contains the dimensions of the windows.
I've modified the picture size too according to Blue Scope's suggestions.

-Medium Rucksack
2eqdftf.jpg
As you can see the medium rucksack only adds one slot to the rucksack.
It mantains the slots "Y" position.

-Large Rucksack
2zthnc2.jpg
The large rucksack will double the medium rucksack size.
The large rucksack has to change the Y positions of the slots.

Some things that must be noted:
- The rucksack capacity is doubled with each upgrade, meaning first one has 2, next has 4, and last one has 8.
- There are only three rucksack sizes, and you buy them throughout the game. Therefore Rucksack size can't be decreased.
-As mentioned before, there are only two item categories: Weapons/Tools, and Consumable Items. The game won't give the
player other kinds of items, so "Armor" items are not applied.

ACTIVE ITEMS

The "Held Item" or "Active Item" is already scripted.
just by adding the line
$game_player.hold_item($data_items[n])
My character will go around holding the item., like so:
16atkr8.jpg


REFERENCE IMAGES
These are other images showing a similar system. They are all from
different Harvest Moon Games.

hm3-014.gif


23krbd4.jpg


ehd9a9.jpg


Thank you for reading.
 
So, let's see... basically, you have an atractive request here - the kind I would've taken when I still used XP ;)

There's some things that immediately strike my head though while reading through it: You want the max size to be determineable by a variable, which is pretty loose information by itself. Going from your concept on top, your idea might be to switch between 1 (0) item(s) and 10 items (as that's what seems to fit if you perfectly crowd the backpack spaces). Not only should you give details on that, but also think about what should happen for the individual item slots when there's
- only one row of item slots,
- and odd number of item slots,
- no item slots for a category,
- item slot value gets decreased, however max amount of items is stored,
- and of course combinations of the above

Additionally, your item background graphic has the dimensions 69x70, which isn't really attractive (though possible). If you go with equal sides that are both even numbers, you'll do everyone a favourite. Remember that depending on what you want to do further (animations, ...), if your tile is divideable through 8 or 4, you'll have an even easier job with that... just to mention some basic outlines.
That being said, 64x64 seems to be a well-fitting size for 32x32 icons, if you want to display some additional space around them.

Otherwise, pretty well-made, visual, well-understandable request - thumbs up!
 
EDIT:

Nevermind, I've started scripting it myself and have done it almost completely,
here's an in game pic
35017pz.jpg

:)
it just needs the help window and I'm done.
Thanks anyway.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top