[Request] Inventory list Plugin

Post your work in progress addons and get feedback

Post » Fri Feb 17, 2017 6:39 pm

I'm trying to do a Point & Click adventure game and wonder if there is a plugin that keep a list of items ordered that you can manipulate and retrieve.

Example:
Player picks a : Pen, scissors and paper in that order so i add in that inventory and is saved like:
--------------
Pen
Scissors
Paper
--------------

If the player give the scissors then Erase > Inventory.Scissors and the list saved will look like this:
--------------
Pen
Paper
--------------

If the player pick a mobile then Add > Inventory Mobile and will look like this:
--------------
Pen
Paper
Mobile
--------------

A plugin that manage and keep updated/ordered a list on you can add, delete and retrieve the elements.

So for the sprite.inventory on i have all the image items saved in different animations i clone it to 4 or the slots i want my game have for the inventory and set: "For each Sprite.InventorySlot -> Set animation to "inventory.name" . This will be so easy instead of fight again with arrays that i always end frustrated.
B
27
S
10
G
3
Posts: 607
Reputation: 4,666

Post » Tue Feb 21, 2017 5:49 am

Hi! i looked your request and i think for this you could use the vanilla dictionary instead.

So recently i was working in a series of plugins to power up my own projects and i made a wrap of a couple of vanilla plugins between them is a wrap of dictionary, which i modified so we can manipulate something i called "string list keys" that is nothing new, actually that is a new way to manage string keys, so you can trait a key like this "A,B,somehting else,C..." where character "," is a separator defining a list of elements, "A" "B" and so on, so you can add new items to that list at end or at its start, or retrive an item knowing its index, even remove items by index or value and occurency, this is a "shortcut" way to use the system function tokenat, with dictionary keys instead.

I hope this could help you
there is a link.
https://drive.google.com/drive/folders/ ... sp=sharing

PD: sorry my bad english not my native language.
B
7
S
2
G
1
Posts: 82
Reputation: 1,058


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests