Can you write an if statement, so that you say (in pseudo-code)
if(someRandomVariable == true OR somethingElse == true OR insaneRageMode == true){
Instantiate (pineapples, transform.position, transform.rotation);
}
And replace the "OR"s with some clever coding.