PDA

View Full Version : inventory->arraybased



lone_wild_wolf
June 2nd, 2006, 08:32 AM
Hi,
I have been developing an inventory/equip system and have done the equip part of it.
Now the part that I need help: I need someone to help me make it an array-based inventory. I’m not very good at things like this so I need some help. The person who helps will be given FULL credits for his\her work
I am attaching the current so called “inventory”.
Thanks a lot for your time,
lone_wild_wolf
P.S.I used nathan99'c character code and used help from his inventory.i hope its allright with him
:geek:

Ghettobird
June 2nd, 2006, 10:50 AM
Wow looks awesome :D thnx
:D

lone_wild_wolf
June 2nd, 2006, 10:57 AM
:h: ^what does that mean^:h:

bombsledder
June 2nd, 2006, 11:56 AM
He's asking for help :O

AfternoonDelite
June 2nd, 2006, 08:34 PM
var items:Array = new Array();

items.push(firstItem);
items.push(secondItem);
items.push(thirdItem);

etc... etc...

and then you can do,
items[0].found

for the first element and such like that.

So, you can pass a location in the array rather than the entire item every time.

nathan99
June 3rd, 2006, 12:18 AM
Hey, I had a spare minute... I didn't change it to array based... but just tidies up your code a little.. I didnt have time to read over it and totally change it.. so i just fixed what you already had

;)

lone_wild_wolf
June 3rd, 2006, 06:22 AM
Dear Nathan,
Thanks a lot for all the help but the thing is that the remove weapon function is not working in yours.Thanks anyways
lone_wild_wolf

AfternoonDelite
June 3rd, 2006, 04:42 PM
Wait, so, you just want it done for you and to copy and paste it from an .fla?

Kay, hang on.

lone_wild_wolf
June 3rd, 2006, 11:26 PM
^seriously?THANX:party:

lone_wild_wolf
July 8th, 2006, 10:05 AM
:q: ok then can anyone tell me where i can learn arrays in deapth and make it my self?:q: