Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.08 KB | None | 0 0
  1. let csd = GetCurrentScriptDirectory;
  2. #include_function ".\SHOT_REPLACE\shot_replace.dnh"
  3.  
  4. let spellcard = false;
  5. let life = 3000;
  6. let dscale = [100,50];
  7. let time = 60;
  8.  
  9. let initinv = 0;
  10.  
  11. let name = "NULL";
  12.  
  13. let startwait = 60;
  14. let startmove = [GetCenterX,160];
  15.  
  16. let collide = true;
  17.  
  18. @Initialize {
  19.     shotinit;
  20.         SetInvincibility(startwait);
  21.  
  22.         SetMovePosition02(startmove[0], startmove[1], startwait);
  23.  
  24.     SetTimer(time);
  25.     //Concentration01(startwait);
  26.  
  27.     SetDamageRate(0,0);
  28.  
  29.     start_wait;
  30.  
  31.     if(spellcard||name!="NULL"){spellcard_init;}
  32.  
  33.     SetEnemyMarker(true);
  34.     SetLife(life);
  35. }
  36.  
  37. let clearpoints = 2000000;
  38. sub spellcard_init{
  39.     if(name=="NULL"){name="Untitled";}
  40.     SetScore(clearpoints);
  41.         CutIn(YOUMU, name, "", 0, 0, 0, 0);
  42. }
  43.  
  44. task start_wait{
  45.     init;
  46.     loop(startwait){yield;}
  47.     main;
  48.     loop(initinv){yield;}
  49.     loop{
  50.         if(!collide||(OnBomb&&spellcard)) {
  51.             SetDamageRate(0,0);
  52.         } else {
  53.             SetDamageRate(dscale[0], dscale[1]);
  54.         }
  55.         yield;
  56.     }
  57. }
  58.  
  59. @MainLoop {
  60.     if(collide&&(!OnBomb||!spellcard)){SetCollisionA(GetX, GetY, 32);}
  61.     yield;
  62. }
Add Comment
Please, Sign In to add comment