There's an example of exactly what you want in the sample project, but it may not be easy to find without some guidance. (It might be worth your while just looking through the whole Player sprite rule list, though.) The example is in Sprite Definitions in the Player sprite. Look on the Rules tab of the Player sprite definition and look at the top-level rule called "Tile interactions...". It calls a function called "TouchTiles". TouchTiles is a function that collects all the information it will need about all the touching going on between a sprite and a category of tiles. It returns true if there is any touching to process. Then inside that If, you'll see the first interaction it takes care of is for grapes. TakeTile will add to a counter and change the tile number to 0 (or any specified value) if the counter is not at the max value.