Making inventory items NOT stack

Started by geork, Sat 21/04/2012 20:45:47

Previous topic - Next topic

geork

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:
Code: ags
 
  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!


geork


SMF spam blocked by CleanTalk