The Daily Click ::. Forums ::. Klik Coding Help ::. Inventory Again!
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th January, 2007 at 21:21:34 -

This is causing me a headache now, Basicly im using this http://www.solcon.nl/s.tennapel/inventorytgf.gam as a base for my inventory system,
I have now begun to make it into a usable inventory system but my problem is as follows...

i have created a cursor object that appears when i click on the slot, i want to be able to delete what ever is in that slot. I have tried lots of things but my coding sucks pretty badly and i cant seem to find a way round it, Plus im trying to make the items stackable. if anyone can give me some pointers or even add that to this example that would be amazing. Thx for your time.

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
5th January, 2007 at 09:19:14 -

Antworx, I D/L'd this last night at home but it said I was missing an extension. (I forget just which one but I think it began with "F"). If I have MMF1.5 that shouldn't make a difference, right?

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Aptennap



Registered
  23/04/2004
Points
  916
5th January, 2007 at 09:34:39 -

You need the fast loop extension for this...

 
Oh sweet mary.

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
5th January, 2007 at 15:14:11 -

if anyone can solve my problem i will be forever in your debt.

 
n/a

~Matt Esch~

Stone Goose

Registered
  30/12/2006
Points
  870

VIP Member
5th January, 2007 at 15:55:21 -

http://www.acecs.plus.com/inventorytgf[delete].gam

Thats the delete code

What do you mean by "stackable"?

Image Edited by the Author.

 
http://create-games.com/project.asp?id=1875 Image


Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
5th January, 2007 at 16:55:48 -

Combining multiple items together in the same slot?

I.E

[potion] [potion] [potion]
[empty] [empty] [empty]
[empty] [empty] [empty]
[empty] [empty] [empty]

would become

[potion * 3] [empty] [empty]
[empty] [empty] [empty]
[empty] [empty] [empty]
[empty] [empty] [empty]



Maybe.

 
My signature is never too big!!!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
5th January, 2007 at 22:05:42 -

Yeah, like in Baldur's Gate you can combine arrows into a single stack of 20 that only takes up one inventory slot instead of 2 or 3.


Image Edited by the Author.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
6th January, 2007 at 20:20:22 -

yeah thats exactly what i mean, instead of having 3 potions taking up 3 spaces, i have 1 space with 3 potions in it.

Thx for the delete code, but for some reason it delets the selected item plus other items randomly, ive looked at the code but cant figure out why.

Image Edited by the Author.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
14th January, 2007 at 20:50:30 -

damn, im still having trouble.... I CALL UPON THE MIGHTY POWERS OF THE RADIX!!!

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
15th January, 2007 at 07:09:10 -

What you're asking isn't particulary difficult so I'll have a look at the code tomorrow since you asked so nicely.

I had a quick look at that first gam; didn't check the code but it looks like it just emulates a multi-slot inventory and actually only stores each item in a single variable.

Question: Do you want multiple items of the same type to ONLY take up a single slot (with a number), or do you want it to be possible for them to take up multiple slots AND be stacked?

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
15th January, 2007 at 11:49:37 -

yeah i would really appreciate a stack system with a number. (preferably with a limit ie 20potions then a new stack will begin) and a stable drop system. This has been causing me a headache for ages and i am really appreciative for the help, thanks again

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
15th January, 2007 at 23:49:10 -

Okay, I was about to write it for you and then I realised the first file was a gam so you're probably using TGF. I don't have TGF installed. Is a MMF1.5 or MMF2 file okay or should I dig through my backups?

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
16th January, 2007 at 06:57:29 -

im using mmf2, im using the gam file cause its the only inventory i have seen. so mmf2 would be great.

 
n/a

Reno



Registered
  11/01/2005
Points
  906
16th January, 2007 at 20:46:56 -

ya what Phizzy said. Item stacking. use arrays and string parser to handle everything. The array would even stay in memory unless you decide to export it to a file.

 
Reborn Again

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
16th January, 2007 at 21:01:38 -

That's what I'm doing now (although it's just a one-dimensional array). Only a couple events away from being finished, which I'll do after lunch if I have time.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
18th January, 2007 at 10:39:59 -

thank you soooooo much radix, ive been needing this for so long. Credit will be given as this is a very important aspect of my game. you are my mmf coding hero!

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
18th January, 2007 at 18:04:12 -

Yeah, thanks for the reminder. It's like five minutes away from being finished, but MMF2 has decided to crash for no reason. I just need to fix the bad event (I've tested it and the event itself is fine, but MMF is being a bitch). If I don't have time tonight, expect it up tomorrow.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
18th January, 2007 at 18:33:20 -

YAY!!!!! im looking forward to it thx again!!!

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
20th January, 2007 at 18:08:48 -

hows it coming radix? im so very excited )))

 
n/a

BeamSplashX

Eliminator

Registered
  17/06/2003
Points
  2330

VIP MemberHasslevania 2!The Outlaw
21st January, 2007 at 13:18:16 -

Oh right, Ant is the one making that super-rad lookin' game. I guess we all win when Radix comes to the rescue.

 
Oh! My god.

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
21st January, 2007 at 13:39:14 -

Beamslash have you been on holiday? Its like you've been away and you're checking all the posts.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
21st January, 2007 at 19:35:25 -

Sorry, haven't been able to get online last two days.

http://phenex.googlepages.com/Inventory_Engine.zip

You can specify the inventory size, layout, and max stack size. Items are inserted into the first empty slot. Items can be dragged into empty slots or stacks of the same object. Dragging objects into the red garbage box drops/deletes them.

Only thing missing is multiple-object dragging. Didn't add this because I didn't know if you wanted it and I can think of about three different ways to implement it anyway. If you need it and can't do it yourself, let me know.

Also there's not a while lot of commenting, but it's all in self-descriptive groups. Just ask if you need something explained.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
22nd January, 2007 at 16:03:37 -

I LOVE YOU! thank you sooooo much radix.

 
n/a

BeamSplashX

Eliminator

Registered
  17/06/2003
Points
  2330

VIP MemberHasslevania 2!The Outlaw
22nd January, 2007 at 17:43:18 -

Meh, I just haven't been active on the boards lately and decided to make a comeback (and this time, IT'S PERSONAL). I also just grabbed meself a copy of this for later use.

 
Oh! My god.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd January, 2007 at 07:51:58 -

Doesn't work on MMF1.5, oh well I'm sure it's great anyhow. Someone get Antworx a mop lol.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

BeamSplashX

Eliminator

Registered
  17/06/2003
Points
  2330

VIP MemberHasslevania 2!The Outlaw
23rd January, 2007 at 15:57:30 -

It doesn't? This is the most FUDGEBUCKETS thing I've heard, in the universe, of all time.

 
Oh! My god.
   

Post Reply



 



Advertisement

Worth A Click