Le Jingle
2012-05-11 04:11:41
I'm having trouble (because I lack spunk/knowledge on Arrays) with coming up with a function where I check my Invent for an array of colors.
Ex. = Let's say I have a Inventory full of logs, like so:

What I can think of so far, nowhere near perfect, nor claiming I thought of it all, nor does it even work, nor does it have the color looking for it too.. :/
Again, my overall idea I'm trying to accomplish is this:
so it we have the approypiate colors in each of our designated spots, they we can continue.. I'm half drunk, might be able to find somebody's script to see an example / similar ex, but help would be appreciated!
Ex. = Let's say I have a Inventory full of logs, like so:

What I can think of so far, nowhere near perfect, nor claiming I thought of it all, nor does it even work, nor does it have the color looking for it too.. :/
Function CountInvArryColorsArea: Boolean;
Var
I: Byte;
Begin
Result:= False;
SetArrayLength(Result, 28);
For I:= 2 To 27 Do // I only need to look over invent spots 3-27
Result[I] := GetInven(i + 1);
End;
Again, my overall idea I'm trying to accomplish is this:
// CountInvArrayColorArea(color, InvSpotStart, InvSpotEnd): Boolean;
If (CountInvArryColorsArea(2, 27)) Thenso it we have the approypiate colors in each of our designated spots, they we can continue.. I'm half drunk, might be able to find somebody's script to see an example / similar ex, but help would be appreciated!