function OnTriggerEnter help

Hello everybody. I have looked at the unity scripting reference, I have looked at the unity video tutorials, I have looked at the unity forums, I have looked in unity answers and I’ve watched videos on youtube but I don’t fully understand onTriggerEnter. I am using the function successfully right now but I am wondering if I can do more with it. First off there are 2 examples of OnTriggerEnter in the scripting reference, one under collider and one under monobehaviour. That confuses me especially since they both have the exact same example. I also see (other : collider), can I put something else in these parenthesis? Can I have more than one OnTriggerEnter function in my script?

You cannot put anything else in the arguments(within the function parenthesis). It is not a good idea to have multiple of any function in the same script(you may confuse the compiler). My suggestion is instead of using multiple OnTriggerEnter functions, your should use if/else statements to do the right thing each time, like this

function OnTriggerEnter (col : collider) {
    if(x == 1) {
        //Do something with col
    } else if (x == 2) {
        //Do something else with col
    } else {
        //Notify yourself the criteria were not met
    }
}