Guest User

Main Script

a guest
Aug 29th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. #TouhouDanmakufu // This line must be required
  2. #Title[2-4 Read and Weep] // The title of the script
  3. #Text[Spinning, spinning, spinning...] // The description of the script which is shown when selected
  4. #BackGround[] // Information of the background image (optional)
  5. //#BGM[.\bgm\Doll Judgement.mp3] // The path of the background music (optional)
  6. #PlayLevel[Normal] // Play level (optional)
  7. #Player[FREE] // Available characters (optional)
  8. #ScriptVersion[2] // Script version (normally 2)
  9.  
  10.  
  11.  
  12. script_enemy_main {
  13.  
  14. //insert script variables here
  15. let frame=0;
  16. let frame2=0;
  17. let frame3=0;
  18. let GATP=NULL;
  19. let angle=0;
  20. let angle2=0;
  21. let N=1;
  22.  
  23.  
  24. //insert relevant variables here
  25. let spellName = "Aquamancy 'Whirlpool'";
  26. let ImgBoss = "script\img\ExRumia.png";
  27. let timer = 20;
  28.  
  29. //no touching
  30. //#include_function ".\sanGayaFramework.dnh"
  31. #include_function ".\variables.dnh"
  32. #include_function ".\moveFunction.dnh"
  33. #include_function ".\shot_variables.dnh"
  34. #include_function ".\SanGayaLib.dnh"
  35. //#include_function ".\sanGayaInclude.dnh"
  36. #include_function ".\sanGayaFramework.dnh"
  37.  
  38.  
  39.  
  40. task TMain {
  41. SetMovePosition03(GetCenterX, GetCenterY-100, 11, 15); SetInvincibility(60); wait(60);
  42. SetInvincibility(120); while(OnPlayerMissed || OnBomb) { SetInvincibility(180); yield; }
  43. wait(120); Concentration02(60); PlaySE(seCharge); SetInvincibility(60); wait(60);
  44. attack1;
  45. }
  46. //no touching ends here
  47.  
  48. task attack1{
  49. loop{
  50. frame++;
  51.  
  52. angle+=1.19;
  53. angle2+=2;
  54.  
  55. if(frame>=120 && frame%30==0){
  56. loop(10){
  57. CreateShotA(3,GetX,GetY,10);
  58. SetShotDataA(3,0,0,angle2,0,0.09,2,237);
  59. angle2+=360/10;
  60. FireShot(3);
  61. }
  62. }
  63. if(frame >= 120 && frame%8==0){
  64. PlaySE(seKira00);
  65. ascent(i in 0..2){
  66. loop(2){
  67. CreateShotA(1,GetX+60*cos(angle),GetY+60+i*13*sin(angle),10);
  68. SetShotDataA(1,0,0,angle,-1,0.09,1,67);
  69. SetShotDataA(1,120,NULL,NULL,0,0,0,67);
  70. FireShot(1);
  71. CreateShotA(2,GetX+60*cos(angle),GetY+60+i*13*sin(angle),10);
  72. SetShotDataA(2,0,0,angle,1,0.09,1,67);
  73. SetShotDataA(2,120,NULL,NULL,0,0,0,67);
  74. FireShot(2);
  75. angle+=360/2;
  76. }
  77.  
  78. }
  79.  
  80. }
  81.  
  82. //insert attack pattern here
  83. }
  84. yield;
  85. }
  86.  
  87. }
Advertisement
Add Comment
Please, Sign In to add comment