Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,251 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 2 1 2
Some questions about creating an inventory #379086
07/29/11 13:16
07/29/11 13:16
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Hey guys,

I am trying to create an inventory (an inventory like in diablo, deus ex, etc.) and I have some questions concerning it. I looked in the manual but I couldn't figure this out:

1. Is it possible to show an entity (in this case a sprite) in front of a panel and if possible how can this be done?
2. Can a panel be connected to an action like an entity can (e.g. the entity player can be connected to action that lets the player move) and if possible how can this be done?

Thanks for taking the time!

Re: Some questions about creating an inventory [Re: reknak] #379096
07/29/11 14:27
07/29/11 14:27
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Take a look at the last AUM there is a basic inventory, it'll answer most (if not all) of your questions.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Some questions about creating an inventory [Re: 3run] #379275
07/31/11 13:23
07/31/11 13:23
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Ok I have looked into both AUM 100 and 101 but I still don't get it entirely (I know now that items should be Pans too than and I quess that the things I asked about are not possible). Anyway I'll just mess around more with the script editor.

Re: Some questions about creating an inventory [Re: reknak] #379288
07/31/11 19:01
07/31/11 19:01
Joined: Mar 2009
Posts: 88
Walori Offline
Junior Member
Walori  Offline
Junior Member

Joined: Mar 2009
Posts: 88
Quote:

Anyway I'll just mess around more with the script editor.

Well that's something you should do really if you're looking for inventory. Inventories vary between the games so much that if you're looking for something specific from the inventory it's allways better to create your own. As with the own inventory you allways get the things you need.

Know it's a hard task, even more if you're a beginner or never have done invnetory, but with little ambition and help you should be able to do it. Here's some hints to the inventory, I can't answer to question 1 as I've never done it myself the second question I don't get really, if you mean the events (see event in the manual)of the panel then yes, if something different please clarify.

The inventory, in short, consist the following "items":
-The base inventory that holds everything, you can do this by structs if you wish to have more than one inventory on your screen at a time. But in basic inventory you don't have to worry about this.

-Slots that hold the items inside the inventory. Slots have id for item and panel(s) to show the item on screen. At first you can create this with one variable(for item id) and one panel (for the output). Store the item id to panels skills and use that skill id to identify the item. When you want more features to the iventory, you should really use structs. With structs it's easier to add new features to the slot, however it's also harder to work with them if you've not done that earlier.

-The items are stored as ID, or as struct if you want to, to the slot. Each item can be a basic structure that holds the name, id and so on. Store them to an array for easier picking up from the slots, as then you can use the id number to get item from the array and remove the loop to get the item.

Re: Some questions about creating an inventory [Re: Walori] #379330
08/01/11 10:10
08/01/11 10:10
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Thanks for the info. With the second question I meant connecting an action to an panel, but I quess that's only possible with entities.
When I began to try making the inventory I used panels with buttons for the inventory and entities (/sprites) for the items. All went well except for the fact that I forgot that entities move with x, y and z coordinates and not with only x and y (like panels) and that panels are in frond of entities. Than I tried to make an inventory entirely made of entities (I was getting a bit tired of panels :P) but that didn't work either for me (hard with the x, y and z coordinates and such). I noticed that both entities and panels have their advantages and disadvantages for creating an inventory; entities can have an action connected to them and can have skills which really makes it alot easier but else they make it more difficult.

Speaking of skills, I saw in the manual that panels have skill_x and skill_y, what do do they do exactly?

I also found that rpgtemplate by Claus N., Nighthawk Arts has a good working inventory in it (similar to the deus ex and diablo ones), I'm going to try that one out.

Again thanks for the helpfull comment!

Re: Some questions about creating an inventory [Re: reknak] #379336
08/01/11 10:52
08/01/11 10:52
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
skill_x and skill_y is the same as the skills for entity, here you can save some vars. If you need more then this two skills, then you can use a struct that contains your panels and some more vars.

Re: Some questions about creating an inventory [Re: Widi] #379642
08/05/11 13:34
08/05/11 13:34
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Damn that's good news :D, that was precisely what I hoped for. Thanks for the clarification Widi.

Re: Some questions about creating an inventory [Re: reknak] #379649
08/05/11 16:53
08/05/11 16:53
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
Quote:
1. Is it possible to show an entity (in this case a sprite) in front of a panel and if possible how can this be done?

Try with ent_createlayer function. Set the layer nnumber higher than the panel's layer. It is for model, i know.

Last edited by Aku_Aku; 08/05/11 16:54.
Re: Some questions about creating an inventory [Re: Aku_Aku] #379796
08/08/11 10:48
08/08/11 10:48
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Thanks Aku_Aku, I will keep that in mind. I'm now making it fully with panels (panels for the items in the inventory and the inventory self as panel). So far going great, only one more thing I wanted to know, about pointer for panels. I want to make pointers for the items put into the inventory slots. So lets say I have 10 inventory slots and 2 equipment slots, in the begin of the script I want to create 10 pointers for the item panels placed in the inventory slots and 2 pointers for item panels placed in the equipment slots. I know how pointers work, except with panels. Should I use *PANEL = ... or should I use *BMAP = ... for the item panel pointers?

Sorry if I sound confusing, if so, please say so and I will try to be more clear.

Thanks in advance!

Re: Some questions about creating an inventory [Re: reknak] #379798
08/08/11 11:19
08/08/11 11:19
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
... confusing grin

Can you explain more what you want to achieve?

Best regards.

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1