Trigger problems...

Hello. This is part of my script that will handle collisions. Whenever the object that this script is attached to collides with an object with the name "Basic" I want something to happen. I have an object named "Basic" with a trigger, and nothing happens (the console reads "MissingMethodException: Method not found: 'UnityEngine.BoxCollider.Find'."). What is wrong?

function OnTriggerEnter (other : Collider){ if (other.collider.Find ("Basic")) {PHP-=5;}}

When you want to compare the name of the collider you could use other.collider.name.

if (other.collider.name == "Basic")
   ...