home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / killerpigs.swf / scripts / frame_78 / DoAction.as
Encoding:
Text File  |  2007-03-13  |  843 b   |  32 lines

  1. score += bonus;
  2. if(level < 11)
  3. {
  4.    level_txt = level + " of 10";
  5. }
  6. else
  7. {
  8.    level_txt = "All levels done";
  9. }
  10. level_done = level - 1;
  11. if(6 >= level_done)
  12. {
  13.    speech_text = "Well done! You have just completed level " + level_done + ". This is your score so far...";
  14. }
  15. if(level_done == 7)
  16. {
  17.    speech_text = "You have now completed level 7 - are you trying to impress me ? This is your score so far...";
  18. }
  19. if(level_done == 8)
  20. {
  21.    speech_text = "That\'s Level 8 done ! - you must be very good with your hands! This is your score so far...";
  22. }
  23. if(level_done == 9)
  24. {
  25.    speech_text = "Nearly there, that was Level 9 - dont let me down now ! This is your score so far...";
  26. }
  27. if(level_done == 10)
  28. {
  29.    speech_text = "WOW ! You HAVE impressed me - bet you cant do that again. This is your final score ...";
  30. }
  31. stop();
  32.