ok buddy i'll tke a stab at it. First of all we need a little more info. What is your temperature gauge doing during all this? Is it overheating at all? Next i want you to check the distributor. The TDC and CKP sensors should both be in the distributor (although you have a 2001 so they may be doing it different). So inspect the wiring, and make sure it hasn't been tampered with. The thing that really gets me is you say it runs fine depending on ambient temperature which would suggest a skewed intake air temperature sensor, and that will cause your motor to run like crap. But bad timing will cause your engine not to rev normally. Basically you could be looking at anything, and i think you're gonna end up bringing it somewhere unless you have some pretty good diagnostic skills.
so issues you may be looking at:
sensor problem inside distributor (CKP and TDC; cam and crank sensors)
ECT sensor
IAT sensor
Bad timing
other problem
__________________
|