daily pastebin goal
4%
SHARE
TWEET

Bomber [NTT]

MortyMint Apr 30th, 2017 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define init
  2. //by Morty
  3. global.spr_idle = sprAllyIdle;
  4. global.spr_walk = sprAllyWalk;
  5. global.spr_hurt = sprAllyHurt;
  6. global.spr_dead = sprAllyDead;
  7. global.spr_slct = sprCharSelect;
  8. global.spr_port = sprite_add_base64('iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNTDus58AAAO/SURBVHhe7dY9juRUFAXgFhG7mAAS0sknQASQkSLC2QISOyBhBwSTsQTECiBnQ2jwG817un59/e9yVQ/fJ52kyi7b0jntfgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AV5vxD438mGsCbwycoKfyTwScjK3fLul7ezyc7pAi9SVuZW/D9///X9P3//sTorBgMvQlbeVaMo35eUY79/88VisusMgYf1rLBzw4iDmEo2jJhyTHJdeDjPilrKG8cxN4j6XTx+S5Lrw8MYlTP7K59l7xim0t/HELi7USn7cfTJhlJy1lj6+xkCdzMqYyl6VtqplFHcYij9fQ2Bu2gl3DqOmFsMJd7bx8ClWvn2jKMOIfs3LKYel/3GUuI9DoFLtfJl5Yypb4ha+nju2tSxZL8/lXJ89ztwiVa6qdLGf5v2jiLLlqGUe+jOh5sbla4vZR3F2mF89u7LyWTH16wdSjmmOxdualS4WNKtw/ju388XszSWpaF4i3C1VrZazi3DKFk7jj5zQ5kbSfmuOx5uYlS0K8dRs2ck3iJcpZWsf3vE7+aSlX5rst+tyUZiIFyllSwO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9tR1xPCCzWG6hfAAAAABJRU5ErkJggg==", 1, 12, 16);
  11. global.spr_ult[2] = sprite_add_base64("iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOvwAADr8BOAVTJAAAAAd0SU1FB98KCw4IA+lDbUIAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My4zNTDus58AAAC5SURBVEhL7ZBBDoMwDAT9g/ZHufCa/v8etEipTLKJbVpXQuphLsaeAeQhpWbiCjxlm8L2NWaASRnsFkwDTOKh99AAO4ygXb8NsOWr3D8ATgG20KgvGWB7DDMwE3ojy8DqbUMB9gCsJKkBzNMCETkIBZo8LaDxRoQNG5bEE7n8BeAfOGASzDxyEA5E5OAIWL+ph+3NMAOf8g5kROC8b6A5TwHAlqNo3xAA7CiCdtEAYIcees9XA6On1B1a7iUBsVFJswAAAABJRU5ErkJggg==", 1, 12, 16);
  12. //use png to b64 online conventor, ultras size are 24x32 (yes)
  13.  
  14. global.ultra[1] = 0;
  15. global.ultra[2] = 0;
  16.  
  17.  
  18.  
  19. #define race_soundbank
  20. return 10;
  21.  
  22. #define create
  23. timer = 0;
  24. expl = Explosion;
  25. boihp = 2;
  26. tbx = 0;
  27.  
  28. //set the sprites. spr_chrg is the only one that isnt a default character sprite
  29. spr_idle = global.spr_idle;
  30. spr_walk = global.spr_walk;
  31. spr_hurt = global.spr_hurt;
  32. spr_dead = global.spr_dead;
  33.  
  34. #define step
  35. if my_health <= 0
  36. {
  37.     instance_create(x,y,Explosion);
  38.     sound_play(sndExplosion);
  39. }
  40.  
  41. if global.ultra[1] = 1
  42. {
  43.     expl = GreenExplosion
  44. }
  45.  
  46. if global.ultra[2] = 1
  47. {
  48.     with(enemy)
  49.     {
  50.         if "glue" not in self
  51.         {
  52.             if round(random_range(0,1337)) == 420
  53.             {
  54.             glue = 1
  55.             instance_create(x,y,SmallExplosion)
  56.             }
  57.         }
  58.     }
  59. }
  60.  
  61. if timer >= 0
  62.     timer-=1;
  63. if timer == 0
  64.     repeat(3)
  65.         instance_create(x,y,Dust)
  66.  
  67. //passive code
  68. with(SmallExplosion) team = 2
  69. with(Explosion) team = 2
  70. with(MineExplosion) team = 2
  71. with(GreenExplosion) team = 2
  72.  
  73. if (place_meeting(x,y,SmallExplosion)) or (place_meeting(x,y,Explosion)) or (place_meeting(x,y,MineExplosion)) or (place_meeting(x,y,GreenExplosion))
  74.     {
  75.         if my_health > 6 and my_health <= 16 and skill_get(5)
  76.         {
  77.             my_health = 6
  78.         }
  79.         if my_health > 2 and my_health <= 12 and !skill_get(5)
  80.         {
  81.             my_health = 2
  82.         }
  83.         //IMMUNE TO EXPLOSIONS IF HEALTH > HPCAP + 10
  84.         sprite_index = spr_hurt
  85.     }
  86.  
  87.    
  88. //active code
  89. if (button_pressed(index,"spec"))
  90. {
  91.     if timer <= 0
  92.     {
  93.         timer = 30 * 3;
  94.         instance_create(x,y,Smoke);
  95.         if global.ultra[1] == 0
  96.         {
  97.             instance_create(x+2,y,expl);
  98.             instance_create(x,y+2,expl);
  99.         }
  100.         sound_play(sndExplosion);
  101.         if global.ultra[1] == 1
  102.         {
  103.             //x
  104.             instance_create(x+56,y,expl);
  105.             instance_create(x-56,y,expl);
  106.             //y
  107.             instance_create(x,y+56,expl);
  108.             instance_create(x,y-56,expl);
  109.             //diag
  110.             instance_create(x+40,y+40,expl);
  111.             instance_create(x+40,y-40,expl);
  112.             instance_create(x-40,y+40,expl);
  113.             instance_create(x-40,y-40,expl);
  114.             timer = 30 * 3;
  115.         }
  116.     }
  117. }
  118.  
  119. #define draw
  120.  
  121. //menu sprites and stuff
  122. #define race_portrait
  123. return global.spr_port;
  124.  
  125. #define race_mapicon
  126. return global.spr_icon;
  127.  
  128. #define race_menu_button
  129. sprite_index = global.spr_slct;
  130.  
  131. //name, abilities, starting weapon, and throne butt
  132. #define race_name
  133. return "Bomber";
  134.  
  135. #define race_text
  136. return "@yExplode#@wNo @yExplosion damage#@wunder 2 @rHP";
  137.  
  138. #define swep
  139. return 1;
  140.  
  141. #define race_tb_text
  142. return "@wDont take @yexplosion @ydamage# @w from 6 @rhp";
  143.  
  144. #define race_ultra_button
  145. sprite_index = global.spr_ult[argument0];
  146.  
  147. #define race_ultra_name
  148. switch(argument0){
  149.     case 1: return "More explosions";
  150.     case 2: return "B";
  151. }
  152.  
  153. #define race_ultra_text
  154. switch (argument0){
  155.     case 1: return "Bigger @yexplosion @wradius#@gGreen @yExplosions";
  156.     case 2: return "Enemies have chance to @yEXPLODE";
  157. }
  158.  
  159. #define race_ultra_take
  160. //make sure you get the ultras
  161. global.ultra[argument0] = 1;
  162.  
  163. if global.ultra[1] == 1
  164.     sound_play(sndBasicUltra)
  165. if global.ultra[2] == 1
  166.     sound_play(sndBasicUltra)
  167.  
  168. #define race_ttip
  169. return["KABOOM!","100% not rebel minion xd","Press that button","SMASH!","BUFF @yBOMBER","@wFIX @gULTRA A @wPLZ, SO @rOP"]
  170.  
  171. #define game_start
  172. //reset ultras
  173. global.ultra[1] = 0;
  174. global.ultra[2] = 0;
RAW Paste Data
Top