Advertisement
MortyMint

Hydra [NTT]

Apr 30th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Hydra by Morty
  2. #define init
  3. trace('Hydra (type /hydra_help)');
  4. global.split = 2
  5. global.boss_split = 0
  6. global.times_split = 1
  7. global.worms_split = 0
  8. global.radsplit = 1
  9.  
  10. #define chat_command
  11. switch(argument0)
  12. {
  13.     case "hydra_help":
  14.     {
  15.         trace('/set_split_count [n] - enemies will split into n other enemies')
  16.         trace('/set_split_times [n] - enemies will split n times')
  17.         trace('/set_boss_split [n] - 0 = Bosses cant split')
  18.         trace('/set_worms_split [n] - 0 = Anything maggot related cant spawn')
  19.         trace('/set_rad [n] - 0 = Clones cant drop rads')
  20.         return 1
  21.     }
  22.     case "set_split_count":
  23.     {
  24.         global.split = int64(string_upper(argument1))
  25.         trace('Enemies will split in '+string(global.split)+' other enemies')
  26.         return 1
  27.     }
  28.     case "set_split_times":
  29.     {
  30.         global.times_split = int64(string_upper(argument1))
  31.         trace('Enemies will now split '+string(global.times_split)+' times')
  32.         return 1
  33.     }
  34.     case "set_boss_split": //eh...
  35.     {
  36.         global.boss_split = int64(string_upper(argument1))
  37.         if global.boss_split == 0
  38.             trace('Bosses cant split')
  39.         else
  40.             trace('Blame yourself...')
  41.         return 1
  42.     }
  43.     case "set_worms_split": //WAERNING: GAEM BRAEKING!!!
  44.     {
  45.         global.worms_split = int64(string_upper(argument1))
  46.         if global.worms_split == 0
  47.             trace('Maggots cant split')
  48.         else
  49.             trace('Blame yourself...')
  50.         return 1
  51.     }
  52.     case "set_rad":
  53.     {
  54.         global.radsplit = int64(string_upper(argument1))
  55.         if global.worms_split == 0
  56.             trace('Clones cant drop rads')
  57.         else
  58.             trace('Clones can drop rads')
  59.         return 1
  60.     }
  61. }
  62.  
  63. #define step
  64. with(enemy)
  65. {
  66.    
  67.     if "splitable" not in self
  68.         splitable = 1
  69.     if "split_id" not in self
  70.         split_id = 0
  71.    
  72.     if(object_index == Nothing //throne, lol
  73.     || object_index == Nothing2) //thrones are banned from splitting cuz nothing interesting happens
  74.         splitable = 0
  75.    
  76.     if(global.boss_split = 0)
  77.         if(object_index == BanditBoss
  78.         || object_index == ScrapBoss
  79.         || object_index == LilHunter
  80.         || object_index == FrogQueen
  81.         || object_index == HyperCrystal
  82.         || object_index == TechnoMancer)
  83.             splitable = 0
  84.    
  85.     if(global.worms_split = 0)
  86.         if(object_index == Maggot
  87.         || object_index == MaggotSpawn
  88.         || object_index == BigMaggot
  89.         || object_index == RadMaggot)
  90.             splitable = 0
  91.    
  92.     if splitable == 1 and split_id < global.times_split and my_health <= 0
  93.         for(i=0;i<global.split;i++)
  94.             with(instance_copy(true))
  95.             {
  96.                 split_id = other.split_id+1
  97.                 if global.radsplit == 0
  98.                     raddrop = 0
  99.             }
  100. }
  101.  
  102. /*
  103. NOTES:
  104.  -Scorpions can split into Golden Scorpions
  105.  -Anything maggot related cant spawn (except Flies)
  106. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement