4 registered members (ozgur, Ayumi, VHX, monarch),
1,161
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Expert
|
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
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Sounds simple, but I guess impossible for me 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.
|
|
|
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
Newbie
|
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.
|
|
|
|