ON INIT {
 SETNAME [description_cheese]
 SET_MATERIAL CLOTH
 SET_GROUP PROVISIONS
 SET_GROUP FOOD
 SET_PRICE 14
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_SHADOW OFF
// SET_FOOD 6
 SET_FOOD 3
 SETSCALE 85
 TIMERfood -i 0 4 GOTO FOOD
 SET §crunch 10
 SET §currentscale 100
 SET_WEIGHT 0
 ACCEPT
}

ON INVENTORYUSE {
 PLAY "eat"
 SPECIALFX HEAL 1
 TIMERfood OFF
 EATME
 ACCEPT
} 

ON COMBINE {
  IF (^$PARAM1 ISCLASS "BREAD_HALF") {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\bread_cheese\\bread_cheese"
  REPLACEME "\\provisions\\bread_cheese\\bread_cheese"  
  ACCEPT
 }
  IF (^$PARAM1 ISCLASS "BREAD") {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\bread_half\\bread_half" 
  INVENTORY PLAYERADD "\\provisions\\bread_cheese\\bread_cheese"
  REPLACEME "\\provisions\\bread_cheese\\bread_cheese"
  ACCEPT
 }
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "CRUNCH") {
  IF ( ^INPLAYERINVENTORY == 1 ) {
   SENDEVENT -r TARGET_DEATH 300 ""
   ACCEPT
  }
  DEC §crunch 1
  Dec §currentscale 5
  SET_SCALE §currentscale
  IF (§crunch > 0) ACCEPT
  TIMERfood OFF
  SENDEVENT -r TARGET_DEATH 300 ""
  DESTROY SELF
  ACCEPT  
 }
 ACCEPT
}

>>FOOD
IF ( ^INPLAYERINVENTORY == 1 ) ACCEPT
//	HERO_SAY -d "fromage"

SENDEVENT -grn mice MANIFEST 1000 "RAT_FOOD" 
ACCEPT 