Guest User

Dnh Script [FIXED]

a guest
Jan 14th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.36 KB | None | 0 0
  1. //==============================================
  2. //
  3. // Marisa Boss Battlev1.5
  4. // All rights reserved at ReiRei \ Yuyuko-sama
  5. // at MotK. Do not use this Script or
  6. // you will pay the price with my kitty lawyer!
  7. //
  8. //
  9. //==============================================
  10.  
  11. #TouhouDanmakufu
  12. #Title[ Marisa Nonspell #01 ]
  13. #Text[ an IN nonspell. May be harder or weaker for the player
  14. ( That is, if your a skilled player ) ]
  15. #Player[ player\Sanae\SanaeA.txt, player\Sanae\SanaeB.txt ]
  16. #ScriptVersion[ 2 ]
  17. /////////////////////////////////////////////////////////////
  18. script_enemy_main {
  19. /////////////////////////////////////////////////////////////
  20.  
  21. #include_function".\DATA\lib_anime_Marisa.txt";
  22. #include_function".\SHOT\Index_UserShot.txt";
  23.  
  24. let CSD = GetCurrentScriptDirectory;
  25.  
  26. let Boss_Marisa = CSD ~ "SPRITE\boss_Marisa.png";
  27.  
  28. let UserShot = CSD ~ "SHOT\supershot.txt";
  29.  
  30. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  31. let Shot02 = CSD ~ "SOUND\SE\Shot4.wav";
  32. let ShotFam = CSD ~ "SOUND\SE\Weird.wav";
  33.  
  34. let Mari = 0;
  35. let MariMovement = 0;
  36.  
  37. @Initialize {
  38.  
  39. LoadGraphic( Boss_Marisa );
  40. SetX( GetCenterX );
  41. SetY( GetCenterY - 100 );
  42. LoadSE( Shot01 );
  43. LoadSE( Shot02 );
  44. LoadSE( ShotFam );
  45.  
  46. SetLife( 2600 );
  47. SetTimer( 65 );
  48. SetDamageRate( 70, 250 );
  49.  
  50. LoadUserShotData( UserShot );
  51.  
  52.  
  53. }
  54.  
  55. @MainLoop {
  56.  
  57. SetCollisionA( GetX, GetY, 32 );
  58. SetCollisionB( GetX, GetY, 16 );
  59. yield;
  60.  
  61. Mari++;
  62. MariMovement++;
  63.  
  64. if( Mari == 60 ){
  65.  
  66. CreateEnemyFromScript( "FamiliarA", GetEnemyX, GetEnemyY, 0, 0, 0 );
  67. CreateEnemyFromScript( "FamiliarB", GetEnemyX, GetEnemyY, 0, 0, 180 );
  68. CreateEnemyFromScript( "FamiliarC", GetEnemyX, GetEnemyY, 0, 0, 120 );
  69. CreateEnemyFromScript( "FamiliarD", GetEnemyX, GetEnemyY, 0, 0, 90 );
  70. CreateEnemyFromScript( "FamiliarE", GetEnemyX, GetEnemyY, 0, 0, 45 );
  71.  
  72. LoadSE( ShotFam );
  73.  
  74. SetAction( ACT_SHOT_B, 30 );
  75.  
  76. }
  77.  
  78. if( MariMovement == 240 ){
  79.  
  80. }
  81.  
  82. @DrawLoop {
  83.  
  84. DrawBoss( Boss_Marisa );
  85.  
  86. if( GetSpeedX()<0 ) { SetAction( ACT_MOVE, 0 ) }
  87. if( GetSpeedX()>0 ) { SetAction( ACT_MOVE, 0 ) }
  88.  
  89. }
  90.  
  91. @Finalize {
  92.  
  93. DeleteGraphic( Boss_Marisa );
  94.  
  95. }
  96.  
  97. script_enemy FamiliarA {
  98.  
  99. #include_function".\SHOT\Index_UserShot.txt";
  100.  
  101. let CSD = GetCurrentScriptDirectory;
  102.  
  103. let MariFamA = CSD ~ "SPRITE\Familiar.png";
  104.  
  105. let UserShot = CSD ~ "SHOT\supershot.txt";
  106.  
  107. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  108.  
  109. let MariFami = 0;
  110. let FamMove = 0;
  111. let FamDir = 0;
  112. let FamR = 140;
  113. let MariTime = 0;
  114.  
  115. @Initialize {
  116.  
  117. LoadGraphic( MariFamA );
  118. LoadSE( Shot01 );
  119.  
  120. SetLife( 9999 );
  121. SetDamageRate( 1, 10 );
  122.  
  123. LoadUserShotData( UserShot );
  124.  
  125. }
  126.  
  127. @MainLoop {
  128.  
  129. SetCollisionA( GetX, GetY, 16 );
  130. SetCollisionB( GetX, GetY, 16 );
  131. yield;
  132.  
  133. MariFami++;
  134. FamMove++;
  135.  
  136. if( MariFam == 120 ){
  137.  
  138. PlaySE( Shot01 );
  139.  
  140. CreateShotA( 1, GetX, GetY, 10 );
  141. SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_RED );
  142. SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_RED );
  143. }
  144. FireShot( 1 );
  145. }
  146.  
  147. if( MariFam == 120 ) { MariFam = 115 }
  148.  
  149. if( FamMove == 60 ){
  150.  
  151. loop{
  152.  
  153. SetMovePosition03( GetEnemyX+FamR*cos( FamDir ) GetEnemyY+FamR*sin( FamDir ), 20, 10 );
  154.  
  155. }
  156. }
  157.  
  158.  
  159. }
  160.  
  161. @DrawLoop {
  162.  
  163. SetGraphicScale( 1, 1 );
  164. SetTexture( MariFamA );
  165. SetGraphicAngle( 0, 0, MariTime*4 );
  166. SetColor( 255, 255, 255 );
  167. SetRenderState( ADD );
  168. DrawGraphic( GetX, GetY );
  169.  
  170.  
  171. }
  172.  
  173. @Finalize {
  174.  
  175. }
  176.  
  177. script_enemy FamiliarB {
  178.  
  179. #include_function".\SHOT\Index_UserShot.txt";
  180.  
  181. let CSD = GetCurrentScriptDirectory;
  182.  
  183. let MariFamB = CSD ~ "SPRITE\Familiar.png";
  184.  
  185. let UserShot = CSD ~ "SHOT\supershot.txt";
  186.  
  187. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  188.  
  189. let FamAngle = GetArgument;
  190. let MariFami = 0;
  191. let FamMove = 0;
  192. let FamDir = 0;
  193. let FamR = 140;
  194. let FamSpin = 0;
  195. let MariTime = 0;
  196.  
  197. @Initialize {
  198.  
  199. LoadGraphic( MariFamB );
  200. LoadSE( Shot01 );
  201.  
  202. SetLife( 9999 );
  203. SetDamageRate( 1, 10 );
  204.  
  205. LoadUserShotData( UserShot );
  206.  
  207. }
  208.  
  209. @MainLoop {
  210.  
  211. SetCollisionA( GetX, GetY, 16 );
  212. SetCollisionB( GetX, GetY, 16 );
  213. yield;
  214.  
  215. MariFami++;
  216. FamMove++;
  217.  
  218. if( MariFam == 120 ){
  219.  
  220. PlaySE( Shot01 );
  221.  
  222. CreateShotA( 1, GetX, GetY, 10 );
  223. SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_BLUE );
  224. SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_BLUE );
  225. }
  226. FireShot( 1 );
  227. }
  228.  
  229. if( MariFam == 120 ) { MariFam = 115 }
  230.  
  231. if( FamMove == 60 ){
  232.  
  233. loop{
  234.  
  235. SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
  236.  
  237. }
  238. }
  239.  
  240.  
  241. }
  242.  
  243. @DrawLoop {
  244.  
  245. SetGraphicScale( 1, 1 );
  246. SetTexture( MariFamB );
  247. SetGraphicAngle( 0, 0, MariTimer*4 );
  248. SetColor( 255, 255, 255 );
  249. SetRenderState( ADD );
  250. DrawGraphic( GetX, GetY );
  251.  
  252. SetGraphicScale( 1, 1 );
  253. SetTexture( MariFamB );
  254. SetGraphicAngle( 0, 0, FamSpin );
  255. SetColor( 255, 255, 255 );
  256. SetRenderState( ADD );
  257. DrawGraphic( GetX, GetY );
  258.  
  259. FamSpin - = 10;
  260.  
  261. }
  262.  
  263. @Finalize {
  264.  
  265. }
  266.  
  267. script_enemy FamiliarC {
  268.  
  269. #include_function".\SHOT\Index_UserShot.txt";
  270.  
  271. let CSD = GetCurrentScriptDirectory;
  272.  
  273. let MariFamC = CSD ~ "SPRITE\Familiar.png";
  274.  
  275. let UserShot = CSD ~ "SHOT\supershot.txt";
  276.  
  277. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  278.  
  279. let FamAngle = GetArgument;
  280. let MariFami = 0;
  281. let FamMove = 0;
  282. let FamDir = 0;
  283. let FamR = 140;
  284. let FamSpin = 0;
  285. let MariTime = 0;
  286.  
  287. @Initialize {
  288.  
  289. LoadGraphic( MariFamC );
  290. LoadSE( Shot01 );
  291.  
  292. SetLife( 9999 );
  293. SetDamageRate( 1, 10 );
  294.  
  295. LoadUserShotData( UserShot );
  296.  
  297. }
  298.  
  299. @MainLoop {
  300.  
  301. SetCollisionA( GetX, GetY, 16 );
  302. SetCollisionB( GetX, GetY, 16 );
  303. yield;
  304.  
  305. MariFami++;
  306. FamMove++;
  307.  
  308. if( MariFam == 120 ){
  309.  
  310. PlaySE( Shot01 );
  311.  
  312. CreateShotA( 1, GetX, GetY, 10 );
  313. SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_LIME );
  314. SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_LIME );
  315. }
  316. FireShot( 1 );
  317. }
  318.  
  319. if( MariFam == 120 ) { MariFam = 115 }
  320.  
  321. if( FamMove == 60 ){
  322.  
  323. loop{
  324.  
  325. SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
  326.  
  327. }
  328. }
  329.  
  330.  
  331. }
  332.  
  333. @DrawLoop {
  334.  
  335. SetGraphicScale( 1, 1 );
  336. SetTexture( MariFamC );
  337. SetGraphicAngle( 0, 0, MariTime*4 );
  338. SetColor( 255, 255, 255 );
  339. SetRenderState( ADD );
  340. DrawGraphic( GetX, GetY );
  341.  
  342. SetGraphicScale( 1, 1 );
  343. SetTexture( MariFamB );
  344. SetGraphicAngle( 0, 0, FamSpin );
  345. SetColor( 255, 255, 255 );
  346. SetRenderState( ADD );
  347. DrawGraphic( GetX, GetY );
  348.  
  349. FamSpin - = 10;
  350.  
  351.  
  352.  
  353. }
  354.  
  355. @Finalize {
  356.  
  357. }
  358.  
  359. script_enemy FamiliarD {
  360.  
  361. #include_function".\SHOT\Index_UserShot.txt";
  362.  
  363. let CSD = GetCurrentScriptDirectory;
  364.  
  365. let MariFamD = CSD ~ "SPRITE\Familiar.png";
  366.  
  367. let UserShot = CSD ~ "SHOT\supershot.txt";
  368.  
  369. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  370.  
  371. let FamAngle = GetArgument;
  372. let MariFami = 0;
  373. let FamMove = 0;
  374. let FamDir = 0;
  375. let FamR = 140;
  376. let FamSpin = 0;
  377. let MariTime = 0;
  378.  
  379. @Initialize {
  380.  
  381. LoadGraphic( MariFamD );
  382. LoadSE( Shot01 );
  383.  
  384. SetLife( 9999 );
  385. SetDamageRate( 1, 10 );
  386.  
  387. LoadUserShotData( UserShot );
  388.  
  389. }
  390.  
  391. @MainLoop {
  392.  
  393. SetCollisionA( GetX, GetY, 16 );
  394. SetCollisionB( GetX, GetY, 16 );
  395. yield;
  396.  
  397. MariFami++;
  398. FamMove++;
  399.  
  400. if( MariFam == 120 ){
  401.  
  402. PlaySE( Shot01 );
  403.  
  404. CreateShotA( 1, GetX, GetY, 10 );
  405. SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_YELLOW );
  406. SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_YELLOW );
  407. }
  408. FireShot( 1 );
  409. }
  410.  
  411. if( MariFam == 120 ) { MariFam = 115 }
  412.  
  413. if( FamMove == 60 ){
  414.  
  415. loop{
  416.  
  417. SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
  418.  
  419. }
  420. }
  421.  
  422.  
  423. }
  424.  
  425. @DrawLoop {
  426.  
  427. SetGraphicScale( 1, 1 );
  428. SetTexture( MariFamD );
  429. SetGraphicAngle( 0, 0, MariTime;*4 );
  430. SetColor( 255, 255, 255 );
  431. SetRenderState( ADD );
  432. DrawGraphic( GetX, GetY );
  433.  
  434. SetGraphicScale( 1, 1 );
  435. SetTexture( MariFamB );
  436. SetGraphicAngle( 0, 0, FamSpin );
  437. SetColor( 255, 255, 255 );
  438. SetRenderState( ADD );
  439. DrawGraphic( GetX, GetY );
  440.  
  441. FamSpin - = 10;
  442.  
  443.  
  444. }
  445.  
  446. @Finalize {
  447.  
  448. }
  449.  
  450. script_enemy FamiliarE {
  451.  
  452. #include_function".\SHOT\Index_UserShot.txt";
  453.  
  454. let CSD = GetCurrentScriptDirectory;
  455.  
  456. let MariFamE = CSD ~ "SPRITE\Familiar.png";
  457.  
  458. let UserShot = CSD ~ "SHOT\supershot.txt";
  459.  
  460. let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
  461.  
  462. let FamAngle = GetArgument;
  463. let MariFami = 0;
  464. let FamMove = 0;
  465. let FamDir = 0;
  466. let FamR = 140;
  467. let FamSpin = 0;
  468. let MariTime = 0;
  469.  
  470. @Initialize {
  471.  
  472. LoadGraphic( MariFamE );
  473. LoadSE( Shot01 );
  474.  
  475. SetLife( 9999 );
  476. SetDamageRate( 1, 10 );
  477.  
  478. LoadUserShotData( UserShot );
  479.  
  480. }
  481.  
  482. @MainLoop {
  483.  
  484. SetCollisionA( GetX, GetY, 16 );
  485. SetCollisionB( GetX, GetY, 16 );
  486. yield;
  487.  
  488. MariFami++;
  489. FamMove++;
  490.  
  491. if( MariFam == 120 ){
  492.  
  493. PlaySE( Shot01 );
  494.  
  495. CreateShotA( 1, GetX, GetY, 10 );
  496. SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_PURPLE );
  497. SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_PURPLE );
  498. }
  499. FireShot( 1 );
  500. }
  501.  
  502. if( MariFam == 120 ) { MariFam = 115 }
  503.  
  504. if( FamMove == 60 ){
  505.  
  506. loop{
  507.  
  508. SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
  509.  
  510. }
  511. }
  512.  
  513.  
  514. }
  515.  
  516. @DrawLoop {
  517.  
  518. SetGraphicScale( 1, 1 );
  519. SetTexture( MariFamE );
  520. SetGraphicAngle( 0, 0, MariTime*4 );
  521. SetColor( 255, 255, 255 );
  522. SetRenderState( ADD );
  523. DrawGraphic( GetX, GetY );
  524.  
  525. SetGraphicScale( 1, 1 );
  526. SetTexture( MariFamB );
  527. SetGraphicAngle( 0, 0, FamSpin );
  528. SetColor( 255, 255, 255 );
  529. SetRenderState( ADD );
  530. DrawGraphic( GetX, GetY );
  531.  
  532. FamSpin - = 10;
  533.  
  534.  
  535. }
  536.  
  537. @Finalize {
  538.  
  539. }
  540. }
  541. }
Advertisement
Add Comment
Please, Sign In to add comment