Guest User

stage script

a guest
Nov 12th, 2013
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #東方弾幕風[Stage]
  2. #ScriptVersion[3]
  3. #Title["test"]
  4. #Text[""]
  5. #System["./lib/system.txt"]
  6.  
  7.  
  8. @Initialize
  9. {
  10. SetPlayerLife(99);
  11. TStage();
  12. }
  13.  
  14. @MainLoop
  15. {
  16. yield;
  17. }
  18.  
  19. @Finalize
  20. {
  21. }
  22.  
  23.  
  24. task TStage
  25. {
  26.  
  27. //ボス再生
  28. let boss = GetCurrentScriptDirectory ~ "cirno.txt";
  29. let idboss = LoadScriptInThread(boss);
  30.  
  31. let path = GetCurrentScriptDirectory ~ "plural.txt";
  32. let idpath = LoadScriptInThread(path);
  33.  
  34.  
  35. loop(60){yield;}//1秒くらいあれば、コンパイル完了すると思われる。
  36.  
  37. StartScript(idboss);
  38. StartScript(idpath);
  39.  
  40. //敵ボスシーンが終了するまで待機
  41. while(!IsCloseScript(idboss) && GetPlayerState() != STATE_END)
  42. {
  43. yield;
  44. }
  45.  
  46. //~~~敵の出現やボスの出現を繰り返す。
  47.  
  48. loop(240){yield;}
  49.  
  50. //ステージ終了
  51. CloseStgScene();
  52. }
Advertisement
Add Comment
Please, Sign In to add comment