home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 August
/
Chip_2004-08_cd1.bin
/
oddech
/
western
/
tiroteo.swf
/
scripts
/
frame_73
/
DoAction.as
Wrap
Text File
|
2004-06-09
|
5KB
|
306 lines
function cNivel()
{
if(_root.nivelu == 1)
{
x = random(3) + 1;
if(x == 1)
{
finaljudge = "Esto solo era un aperitivo...";
}
if(x == 2)
{
finaljudge = "�El primer nivel no tiene secretos!";
}
if(x == 3)
{
finaljudge = " A ver que haces en el nivel 2...";
}
}
if(_root.nivelu == 2)
{
x = random(3) + 1;
if(x == 1)
{
finaljudge = "�El proximo nivel no sera facil!";
}
if(x == 2)
{
finaljudge = "�Pareces decidido a ganar!";
}
if(x == 3)
{
finaljudge = "�Aun quedan 3 niveles!";
}
}
if(_root.nivelu == 3)
{
x = random(3) + 1;
if(x == 1)
{
finaljudge = "�Eres bueno! Bastante bueno...";
}
if(x == 2)
{
finaljudge = "�Veamos que haces ahora!";
}
if(x == 3)
{
finaljudge = "�Naciste con pistolas en las manos?";
}
}
if(_root.nivelu == 4)
{
x = random(3) + 1;
if(x == 1)
{
finaljudge = "�Solo uno mas!";
}
if(x == 2)
{
finaljudge = "�Buen trabajo!";
}
if(x == 3)
{
finaljudge = "No estaras usando mirilla laser, �no?";
}
}
if(_root.nivelu == 5)
{
x = random(3) + 1;
if(x == 1)
{
finaljudge = "�Lo conseguiste!";
}
if(x == 2)
{
finaljudge = "�Intenta superar esa puntuacion!";
}
if(x == 3)
{
finaljudge = "�Profesional! �muy profesional!";
}
}
}
function judgeslab1()
{
x = random(3) + 1;
if(x == 1)
{
judge1 = "�Esa puntuacion es peor que mala!";
}
if(x == 2)
{
judge1 = "�No prestas atencion!";
}
if(x == 3)
{
judge1 = "�Un bebe sacaria mas puntos!";
}
}
function judgemediu1()
{
x = random(3) + 1;
if(x == 1)
{
judge1 = "Se que puedes hacerlo mejor...";
}
if(x == 2)
{
judge1 = "�Llegaras a ser grande!";
}
if(x == 3)
{
judge1 = "Algo has puntuado...";
}
}
function judgebun1()
{
x = random(3) + 1;
if(x == 1)
{
judge1 = "�Eres Bueno!";
}
if(x == 2)
{
judge1 = "�Sencillamente fantastico!";
}
if(x == 3)
{
judge1 = "�Tu mama estaria orgullosa!";
}
}
function judgeslab2()
{
x = random(3) + 1;
if(x == 1)
{
judge2 = "No eres precisamente el mas rapido.";
}
if(x == 2)
{
judge2 = "�Estas jugando con los ojos cerrados?";
}
if(x == 3)
{
judge2 = "He visto caracoles mas rapidos";
}
}
function judgemediu2()
{
x = random(3) + 1;
if(x == 1)
{
judge2 = "�Buena velocidad!";
}
if(x == 2)
{
judge2 = "�Estas cogiendo el ritmillo!";
}
if(x == 3)
{
judge2 = "Vas mejorando!";
}
}
function judgebun2()
{
x = random(3) + 1;
if(x == 1)
{
judge2 = "�Eres como un relampago!";
}
if(x == 2)
{
judge2 = "�Rapido, muy rapido!";
}
if(x == 3)
{
judge2 = "Woooou, rarido, si!!!";
}
}
function judgeslab3()
{
x = random(3) + 1;
if(x == 1)
{
judge3 = "�Disparas como el diablo!";
}
if(x == 2)
{
judge3 = "�Vas a destrozar el raton!";
}
if(x == 3)
{
judge3 = "�Vives para disparar!";
}
}
function judgemediu3()
{
x = random(3) + 1;
if(x == 1)
{
judge3 = "�No esta mal!";
}
if(x == 2)
{
judge3 = "�Tampoco es para tanto!";
}
if(x == 3)
{
judge3 = "�Puedes mejorar eso!";
}
}
function judgebun3()
{
x = random(3) + 1;
if(x == 1)
{
judge3 = "�Guardando municion para despues?";
}
if(x == 2)
{
judge3 = "Cada disparo es oro";
}
if(x == 3)
{
judge3 = "�Nunca fallas?";
}
}
function highscoru()
{
if(highscore < totalscore)
{
highscore = totalscore;
conclusion = "�Genial! �Nuevo record!";
}
}
Mouse.show();
stopDrag();
if(score < 20)
{
judgeslab1();
}
else if(60 < score)
{
judgebun1();
}
else
{
judgemediu1();
}
if(time < 5)
{
judgeslab2();
}
else if(20 < time)
{
judgebun2();
}
else
{
judgemediu2();
}
if(shoots < 5)
{
judgeslab3();
}
else if(20 < shoots)
{
judgebun3();
}
else
{
judgemediu3();
}
cNivel();
with(_root)
{
bonus = time + shoots + score - scordefacut;
if(time == 0)
{
conclusion = "�Se te acabo el tiempo!";
}
else if(0 >= shoots)
{
conclusion = "�No tienes municion!";
}
else
{
conclusion = "�Has eliminado a todos!";
}
nivelu += 1;
totalscore += score;
if(score < scordefacut)
{
nivelu = 0;
gameover = "GAME OVER";
highscore();
finaljudge = "No conseguiste " + scordefacut + " �Puntos!";
}
if(nivelu == 6)
{
nivelu = 0;
winneru = "�Lo conseguiste!";
highscoru();
}
}