Guest User

Last Word Test

a guest
Jan 3rd, 2012
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #TouhouDanmakufu[Stage]
  2. #Title[Last Word Test]
  3. #Text[...]
  4. #PlayLevel[Last Word]
  5. #Player[FREE]
  6. #ScriptVersion[2]
  7.  
  8. script_stage_main {
  9.  
  10. let CSD = GetCurrentScriptDirectory;
  11.  
  12.  
  13. function wait(w) {
  14. loop(w){ yield; }
  15. }
  16. function WaitForZeroEnemy {
  17. while(GetEnemyNum != 0){ yield; }
  18. }
  19. function WaitForNoEvent {
  20. while(OnEvent == true){ yield; }
  21. }
  22. function WaitForCapture {
  23. while(GetCommonData("repeat")==true) {
  24. if(GetEnemyNum == 0) {
  25. AddScore(-GetScore);
  26. AddGraze(-GetGraze);
  27. CreateEnemyBossFromFile(CSD ~ "Stage 3\Spell Test.txt", 0, 0, 0, 0, 0);
  28. }
  29. yield;
  30. }
  31. }
  32. task stage {
  33. PlayMusic(CSD ~ "Last Word Theme.mp3");
  34. SetRateScoreSystemEnable(false);
  35. SetCommonData("repeat",true);
  36. CreateEnemyBossFromFile(CSD ~ "Stage 3\Spell Test.txt", 0, 0, 0, 0, 0);
  37. WaitForCapture;
  38. wait(90);
  39. Clear;
  40. }
  41. @Initialize {
  42. stage;
  43. }
  44. @MainLoop {
  45. yield;
  46. }
  47. @Finalize {
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment