Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 942 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Inventory workshop in RPG [Re: 3run] #365936
03/30/11 14:06
03/30/11 14:06
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488

For the previous question, i was not asking to make these RPG elements, i was just suggesting ideas for all the next AUM for this new RPG template serie laugh

Re: Inventory workshop in RPG [Re: ratchet] #365973
03/30/11 22:42
03/30/11 22:42
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
@George I'm sure yours will be better suited to a blanket of users....

to the others:
What I have so is very WIP, but I have messed with it...I typed a bunch about it before I thought I should wait until it is further along...as it is, I do not have much time with school and work AND a pregnant wife....but stay tuned...when it gets closer to completion I will open a thread dedicated to it.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Inventory workshop in RPG [Re: Nowherebrain] #367237
04/11/11 05:16
04/11/11 05:16
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
I have not had much time to work on this....I barely found the strength to drag myself here to post....I know this is important to a lot of you and for that I am truly sorry, but I just do not have the time(or strength)to work on this at the moment due to my personal life.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Inventory workshop in RPG [Re: Nowherebrain] #367272
04/11/11 14:40
04/11/11 14:40
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sad to hear frown I was having big plans for this, but anyway I hope someone will make good inventory.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Inventory workshop in RPG [Re: 3run] #367731
04/17/11 09:04
04/17/11 09:04
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
well I can break it down simply what I was doing....

1) I filled an array that returned the mouse pos based on inventory panels...
cell_1, cell_2 etc...

2) I read mouse clicks in accordance with each cell and bound them to a few simple checks and functions...
it went sorta like this....

on mouse over the mouse returned a few values...
1. is cell used
2. item description(read from a text file)
ex.
is cell used(is there an item)? then...read cell 1.txt into buffer text.
(every cell had an individual text file associated with it for simplicity...there was also a temp text to read in and out of like a buffer)
once you have the info contained in cell_1 you could move it to cell_2 etc..
part of the data that is stored in the text files contains...
1. current location(cell)
2. bitmap representation used
3. stack count
4. item information(like DAMAGE, GUN/SWORD etc...)
you could go on and on adding to this code I have not submitted it, because
a) it is not complete and
b) in order to test it I had to get it fairly deeply ingrained into my current project and there is a lot of code bleeding between the two....
and finally
c)while it is easy to use, implement and understand...I feel what George will come up with will be better and more robust(besides I just got a new computer and have to sort through all my backed up files to see what is worth salvaging...and I am not sure I will resurrect this...as with all code, I always see better ways to write it the second time.)


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Inventory workshop in RPG [Re: Nowherebrain] #367848
04/19/11 02:28
04/19/11 02:28
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
Another way is to use a multidimensional arrays

int yo[10][10];

10 across and 10 down for a total of 100 slots. Now picture the 100 slots on the screen. Each slot with have a number 1 to a million. Each number would represent an item from your inventory. Now set up the positions for the 100 panels. Each panel is actually a button. Set up the function so that it can be clicked, moved and dropped into a new spot.

Yes I know you probably don't need 100 spots but it was an idea. Note that it doesn't have to be a a power of 2 (10 x 10, 5 x 5 or 3x3) it can be anything numbers and the position can be anything, that is up to you.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Inventory workshop in RPG [Re: FoxHound] #367854
04/19/11 06:51
04/19/11 06:51
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sounds simple, but I guess impossible for me grin
I hope someone could make some kind of tutorial for such simple but useful thing.
Or next AUM will have something better than we had in old Mirrowind workshop.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Inventory workshop in RPG [Re: 3run] #368428
04/25/11 08:45
04/25/11 08:45
Joined: Dec 2010
Posts: 22
Xiu Zheng Road 229,Gao XinZone...
youlong Offline
Newbie
youlong  Offline
Newbie

Joined: Dec 2010
Posts: 22
Xiu Zheng Road 229,Gao XinZone...
I also do a RPG game, and I also studied Micmoc teacher's code, if you have any problems, I hope that we can help each other, I have Micmoc teachers on the basis of the code by adding the equipment to wear and display of character attributes.

Last edited by youlong; 04/25/11 08:57.
Re: Inventory workshop in RPG [Re: youlong] #368621
04/26/11 23:34
04/26/11 23:34
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
@foxhound the cells were defined with multidimensional arrays, I just tried to break it down so others could get an idea how to do it either their own way or maybe an easier way....I have also tried reading a panels color(with a mouse trace), using a different shade for each slot, to tell what cell you were over, but while this is simpler(since you can still read transparent panels)it takes a bit more memory(size of the panel vs the written code).


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Page 2 of 2 1 2

Moderated by  George 

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