function AritficalIntelligence() { GIGAMANdata.FIREkey=false; if(behaviorTIME<1) { behavior=randomNumber(12); behaviorTIME=randomNumber(10); } if(behavior<6) { behaviorChase(document.all.MEGAMAN,MEGAMANdata,document.all.GIGAMAN,GIGAMANdata); } else { if(GIGAMANdata.FACINGright) GIGAMAN.src=MEGAMANdata.STANDpose[1].src; else GIGAMAN.src=MEGAMANdata.STANDpose[2].src; behaviorStandFire(document.all.MEGAMAN,MEGAMANdata,document.all.GIGAMAN,GIGAMANdata); } if(behavior>8 || behavior==1) { behaviorJump(document.all.MEGAMAN,MEGAMANdata,document.all.GIGAMAN,GIGAMANdata); } //if(randomNumber(100)<((POWERMAX-document.all.BAR1.width)/2)) behaviorShoot(document.all.GIGAMAN,GIGAMANdata); //if(randomNumber(100)<20) behaviorShoot(document.all.GIGAMAN,GIGAMANdata); ENEMYdamage=(parseInt(POWERMAX-document.all.BAR1.width)/2); PLAYERdamage=(parseInt(POWERMAX-document.all.BAR2.width)/2); if(randomNumber(100)<(ENEMYdamage-PLAYERdamage)) behaviorShoot(document.all.GIGAMAN,GIGAMANdata); if(randomNumber(100)<3) behaviorShoot(document.all.GIGAMAN,GIGAMANdata); behaviorTIME--; }