//This function makes an item fall to the floor when spawned
IfSpawned				
  tmpargument = ACTIONJB		  
  DoAction				  
  KeepAction				  
  MakeCrushValid

//Crushed in a passage
IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 1
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear

// Make it lie on floor
IfDropped				
  KeepAction				  

// Tell them what they've won...
IfGrabbed				
  SetTargetToWhoeverIsHolding		  
  IfTargetIsAPlayer			  
    tmpargument = 0			  
    SendMessageNear			  

// Make a sound
IfHitGround				
  tmpargument = 1			  
  PlaySound				  

//Tell them it is kursed
IfNotDropped
  tmpargument = 2
  SendMessageNear
IfNotPutAway
  tmpargument = 3
  SendMessageNear

End					// All done
