Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: geork on Sat 21/04/2012 20:45:47

Title: Making inventory items NOT stack
Post by: geork on Sat 21/04/2012 20:45:47
Hey all!

This has probabely been answered before, but my searching probabely had all the wrong words :P Is it possible for the same inventory item to be added multiple times at different indexes?

I tried:

  int i = 1;
  int Place = 1;
  while(i < (Game.CharacterCount)){
    if(character[i].x <= RightX && character[i].x >= LeftX && character[i].y <= BottomY && character[i].y >= TopY){
      player.AddInventory(iSelection, Place);
      Place ++;
    }
    i ++;
  }

But I only get one index with the iSelection item

Thanks!
Title: Re: Making inventory items NOT stack
Post by: Khris on Sat 21/04/2012 22:42:11
(http://i.imgur.com/PXesi.png)
Title: Re: Making inventory items NOT stack
Post by: geork on Sun 22/04/2012 15:33:45
Merci!  :D