Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Thanks to YAL and Joao6 for making this possible!
- //How to install: Copy the text down below and put it in a notepad make sure that the extension gets changed to [name].mod.gml
- //Make a folder called "mods" in the Steam nuclear throne folder.
- //Drag in [name].mod.gml into the folder.
- //Start up Nuclear Throne
- //Press "T" and type /loadmod mods/[name].mod.gml
- //have fun!
- #define step
- //Enemies
- //Skills
- //Extra Feet
- if(skill_get(2))
- {
- with (Player)
- maxspeed = 10
- }
- //Colors
- with (PortalL) {
- image_blend = make_colour_rgb(204,0,0);
- }
- with (Laser) {
- image_blend = make_colour_rgb(204,0,0);
- }
- with (Explosion) {
- image_blend = make_colour_rgb(204,0,0);
- }
- with (AmmoChest) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 365;
- image_blend = make_color_hsv(hue, 200, 255);
- }
- with (GiantAmmoChest) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 200, 255);
- }
- with (WeaponChest) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 200, 255);
- }
- with (GiantWeaponChest) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 200, 255);
- }
- with (RadChest) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 200, 255);
- }
- with (PlasmaBall) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 500, 170);
- }
- with (Laser) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 200, 240);
- }
- with (ToxicGas) {
- image_blend = make_colour_rgb(153,0,153);
- }
- with (PlasmaBig) {
- if (!variable_instance_exists(self, "hue")) hue = 0;
- hue = (hue + 1) % 256;
- image_blend = make_color_hsv(hue, 500, 170);
- }
- //Cheats (Not really)
- with(Player)
- {
- if(index == 0) // if is P1
- {
- maxhealth = (16)
- }
- }
- with(Player)
- {
- if(index == 1) // if is P2
- {
- maxhealth = (16)
- }
- }
- with(Player)
- {
- if(index == 0) // if is P1
- {
- if (instance_exists(Portal)) {
- my_health = (16)
- }
- }
- }
- with(Player)
- {
- if(index == 1) // if is P2
- {
- if (instance_exists(Portal)) {
- my_health = (16)
- }
- }
- }
- with(Player)
- {
- if(index == 0) // if is P1
- {
- if (button_pressed(0, "horn"))
- {
- with(GameObject)
- image_xscale += 1
- image_yscale += 1
- }
- }
- }
- with(Player)
- {
- if(index == 1) // if is P1
- {
- if (button_pressed(0, "horn"))
- {
- with(GameObject)
- image_xscale += 1
- image_yscale += 1
- }
- }
- }
- //Bosses
- //Captain
- if(instance_exists(Van))
- {
- with(Van)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Van = instance_create(x, y, Last);
- global.Van.speed = speed;
- global.Van.direction = direction;
- global.Van.image_angle = random(360);
- instance_destroy();
- }
- }
- }
- if GameCont.loops >= 2 {
- if(instance_exists(Last))
- {
- with(Last)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Last = instance_create(x, y, ScrapBoss);
- with(ScrapBoss) { my_health = 12 ; }
- global.Last.speed = speed;
- global.Last.direction = direction;
- global.Last.image_angle = random(360);
- instance_destroy();
- }
- }
- }
- }
- //Big Bandit
- with (BanditBoss) if(object_index != Flame && object_index != ToxicGas) {
- var BanditBoss = instance_create(x, y, FrogQueen);
- with(FrogQueen) { my_health = 1000 ; }
- BanditBoss.speed = speed;
- BanditBoss.direction = direction;
- BanditBoss.image_angle = random(360);
- instance_destroy();
- }
- //LittleHunter
- with (LilHunter) if(object_index != Flame && object_index != ToxicGas) {
- with(ScrapBoss) { my_health = 450 ; }
- with(FrogQueen) { my_health = 650 ; }
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, FrogQueen);
- LilHunter.direction = direction;
- if GameCont.loops >= 2 {
- with(ScrapBoss) { my_health = 800 ; }
- with(FrogQueen) { my_health = 650 ; }
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, ScrapBoss);
- var LilHunter = instance_create(x, y, FrogQueen);
- }
- LilHunter.image_angle = random(360);
- instance_destroy();
- }
- //HyperCrystal
- with (HyperCrystal) if(object_index != Flame && object_index != ToxicGas) {
- with(CrownGuardianOld) { my_health = 700 ; }
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- if GameCont.loops >= 2 {
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- var HyperCrystal = instance_create(x, y, CrownGuardianOld);
- }
- HyperCrystal.speed = speed;
- HyperCrystal.direction = direction;
- HyperCrystal.image_angle = random(360);
- instance_destroy();
- }
- //Nechrodancer
- with (TechnoMancer) if(object_index != Flame && object_index != ToxicGas) {
- with(Nothing2) { my_health = 1500 ; }
- var TechnoMancer = instance_create(x, y, Nothing2);
- if GameCont.loops >= 2 {
- var TechnoMancer = instance_create(x, y, Nothing2);
- }
- TechnoMancer.speed = speed;
- TechnoMancer.direction = direction;
- TechnoMancer.image_angle = random(360);
- instance_destroy();
- }
- //Throne
- if (instance_exists(ThroneStatue)) && (instance_exists(Generator))
- {
- with (ThroneStatue) if(object_index != Flame && object_index != ToxicGas) {
- var ThroneStatue = instance_create(x, y, Guardian );
- with(Guardian) { my_health = 300 ; }
- ThroneStatue.speed = speed;
- ThroneStatue.direction = direction;
- ThroneStatue.image_angle = random(360);
- instance_destroy();
- }
- }
- //Ballmum
- if(instance_exists(FrogQueen)) && (instance_exists(Rat))
- {
- with(FrogQueen)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.FrogQueen = instance_create(x, y, Turtle);
- with(Turtle) { my_health = 2000 ; }
- with (Turtle)
- image_xscale = 5
- image_yscale = 50
- global.FrogQueen.speed = speed;
- global.FrogQueen.direction = direction;
- global.FrogQueen.image_angle = random(360);
- instance_destroy();
- with (Turtle)
- image_xscale = 5
- image_yscale = 50
- }
- }
- }
- //Bigdog
- if(instance_exists(ScrapBoss)) && (instance_exists(Raven))
- {
- with(ScrapBoss)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.ScrapBoss = instance_create(x, y, EnemyHorror);
- with(EnemyHorror) { my_health = 2000 ; }
- global.ScrapBoss.speed = speed;
- global.ScrapBoss.direction = direction;
- global.ScrapBoss.image_angle = random(360);
- instance_destroy();
- }
- }
- }
- //Nightbush
- with (BonePileNight) if(object_index != Flame && object_index != ToxicGas) {
- var BonePileNight = instance_create(x, y, FrogQueen);
- BonePileNight.speed = speed;
- BonePileNight.direction = direction;
- BonePileNight.image_angle = random(360);
- instance_destroy();
- }
- //Popo
- with (Grunt) if(object_index != Flame && object_index != ToxicGas) {
- var Grunt = instance_create(x, y, PopoFreak);
- Grunt.speed = speed;
- Grunt.direction = direction;
- Grunt.image_angle = random(360);
- instance_destroy();
- }
- with (Inspector) if(object_index != Flame && object_index != ToxicGas) {
- var Inspector = instance_create(x, y, EliteInspector);
- Inspector.speed = speed;
- Inspector.direction = direction;
- Inspector.image_angle = random(360);
- instance_destroy();
- }
- with (Shielder) if(object_index != Flame && object_index != ToxicGas) {
- var Shielder = instance_create(x, y, EliteShielder);
- Shielder.speed = speed;
- Shielder.direction = direction;
- Shielder.image_angle = random(360);
- instance_destroy();
- }
- // nort sout west east fire spec swap pick paus okay exit horn talk key1 key2 key3 key4 key5 key6
- //Revolver
- with (Bullet1) if(object_index != Flame && object_index != ToxicGas) {
- var car = instance_create(x, y, CarThrow);
- car.speed = speed;
- car.direction = direction;
- car.image_angle = random(360);
- instance_destroy();
- }
- with (CarThrow) {
- var flame = instance_create(x, y, Flame);
- flame.speed = random(8);
- flame.direction = direction+random_range(-45, 45);
- flame.image_angle = direction;
- flame.team = 2
- }
- //Shotgun
- if(instance_exists(Bullet2))
- {
- with(Bullet2)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Bullet2 = instance_create(x, y, PlasmaBall);
- global.Bullet2.speed = speed;
- global.Bullet2.direction = direction;
- global.Bullet2.image_angle = random(360);
- with (PlasmaBall) team = 2;
- PlasmaBall.speed = 25;
- instance_destroy();
- }
- }
- }
- //Melee
- if(instance_exists(Slash))
- {
- with(Slash)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Slash = instance_create(x, y, Bolt);
- global.Slash.speed = speed;
- global.Slash.direction = direction;
- global.Slash.image_angle = random(360);
- with (Bolt) team = 2
- instance_destroy();
- }
- }
- }
- if(instance_exists(LightningBall))
- {
- with(LightningBall)
- {
- global.Slash = instance_create(x, y, Flame);
- global.Slash.speed = random(8);
- global.Slash.direction = direction+random_range(-45, 45);
- global.Slash.image_angle = direction;
- Flame.team = 2
- }
- }
- //Flame
- if(instance_exists(DragonBurst))
- {
- with(DragonBurst)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.DragonBurst = instance_create(x, y, FlameBall);
- global.DragonBurst.speed = speed;
- global.DragonBurst.direction = direction;
- global.DragonBurst.image_angle = random(360);
- with (FlameBall) team = 2
- with (Flame) team = 2
- instance_destroy();
- }
- }
- }
- if(instance_exists(FlameBurst))
- {
- with(FlameBurst)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst = instance_create(x, y, FlameBall);
- global.FlameBurst.speed = speed;
- global.FlameBurst.direction = direction;
- global.FlameBurst.image_angle = random(360);
- with (FlameBall) team = 2
- with (Flame) team = 2
- instance_destroy();
- }
- }
- }
- //Slugger
- if(instance_exists(Slug))
- {
- with(Slug)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Slug = instance_create(x, y, PlasmaBig);
- global.Slug.speed = speed;
- global.Slug.direction = direction;
- global.Slug.image_angle = random(360);
- with (PlasmaBig) team = 2
- instance_destroy();
- }
- }
- }
- //Grenade
- if(instance_exists(Grenade))
- {
- with(Grenade)
- {
- for (var r = 48; r <= 160; r += 16) {
- var n = ceil(0.1 * r / 24);
- with (Player) {
- var d = random(360);
- for (var i = 0; i < n; i += 1) {
- instance_create(
- x + lengthdir_x(r,d),
- y + lengthdir_y(r,d),
- SmallExplosion
- );
- d += 360 / n;
- }
- }
- }
- wait(2)
- instance_destroy();
- }
- }
- //Bouncer
- if(instance_exists(BouncerBullet))
- {
- with(BouncerBullet)
- {
- global.BouncerBullet = instance_create(x, y, Devastator);
- global.BouncerBullet.speed = speed;
- global.BouncerBullet.direction = direction;
- global.BouncerBullet.image_angle = random(360);
- with (Devastator)
- image_xscale = 25
- image_yscale = 25
- with (Devastator) team = 2
- instance_destroy();
- }
- }
- //Crossbow
- if(instance_exists(Bolt))
- {
- with(Bolt)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Bolt = instance_create(x, y, FlakBullet);
- global.Bolt.speed = speed;
- global.Bolt.direction = direction;
- global.Bolt.image_angle = random(360);
- with (FlakBullet) team = 2
- instance_destroy();
- }
- }
- }
- //Lightning
- if(instance_exists(Lightning))
- {
- with(Lightning)
- {
- global.Lightning = instance_create(x, y, EnemyBullet1);
- global.Lightning.speed = speed;
- global.Lightning.direction = direction;
- global.Lightning.image_angle = random(360);
- EnemyBullet1.speed = speed;
- EnemyBullet1.direction = direction;
- EnemyBullet1.image_angle = random(360);
- with (EnemyBullet1) team = 2
- instance_destroy();
- }
- }
- //Laser
- if(instance_exists(Laser))
- {
- with(Laser)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Laser = instance_create(x, y, BloodBall);
- global.Laser.speed = speed;
- global.Laser.direction = direction;
- global.Laser.image_angle = random(360);
- with (BloodBall) team = 2
- instance_destroy();
- }
- }
- }
- //seeker
- if(instance_exists(Seeker))
- {
- with(Seeker)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Seeker = instance_create(x, y, Nuke);
- global.Seeker.speed = speed;
- global.Seeker.direction = direction;
- global.Seeker.image_angle = random(360);
- with (Nuke) team = 2
- instance_destroy();
- }
- }
- }
- //Splinter
- if(instance_exists(Splinter))
- {
- with(Splinter)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Splinter = instance_create(x, y, SentryGun);
- global.Splinter.speed = speed;
- global.Splinter.direction = direction;
- global.Splinter.image_angle = random(360);
- instance_destroy();
- }
- }
- }
- //FlameShell
- if(instance_exists(FlameShell))
- {
- with(FlameShell)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.FlameShell = instance_create(x, y, UltraShell);
- global.FlameShell = instance_create(x, y, UltraShell);
- global.FlameShell.speed = speed;
- global.FlameShell.direction = direction;
- global.FlameShell.image_angle = random(360);
- with (UltraShell) team = 2
- with (UltraShell)
- image_xscale = 2;
- image_yscale = 2;
- instance_destroy();
- }
- }
- }
- //HeavyBullets
- if(instance_exists(HeavyBullet))
- {
- with(HeavyBullet)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.HeavyBullet = instance_create(x, y, Nuke);
- global.HeavyBullet.speed = speed;
- global.HeavyBullet.direction = direction;
- global.HeavyBullet.image_angle = random(360);
- with (Nuke) team = 2
- instance_destroy();
- }
- }
- }
- //Shanks
- if(instance_exists(Shank))
- {
- with(Shank)
- {
- {
- global.Shank = instance_create(x, y, FlameBall);
- global.Shank.speed = speed;
- global.Shank.direction = direction;
- global.Shank.image_angle = random(360);
- with (FlameBall) team = 2;
- instance_destroy();
- }
- }
- }
- //Ultra(Disc)Weapons
- if(instance_exists(UltraBolt))
- {
- with(UltraBolt)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.UltraBolt = instance_create(x, y, Disc);
- global.UltraBolt.speed = 50;
- global.UltraBolt.direction = direction;
- global.UltraBolt.image_angle = random(360);
- with (Disc) team = 2;
- instance_destroy();
- }
- }
- }
- //HeavyBolt
- if(instance_exists(HeavyBolt))
- {
- with(HeavyBolt)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.HeavyBolt = instance_create(x, y, FlakBullet);
- global.HeavyBolt.speed = speed;
- global.HeavyBolt.direction = direction;
- global.HeavyBolt.image_angle = random(360);
- with (FlakBullet) team = 2
- instance_destroy();
- }
- }
- }
- //Energy sword
- if(instance_exists(EnergySlash))
- {
- with(EnergySlash)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.EnergySlash = instance_create(x, y, UltraBullet);
- global.EnergySlash.speed = speed;
- global.EnergySlash.direction = direction;
- global.EnergySlash.image_angle = random(360);
- with (UltraBullet) team = 2
- instance_destroy();
- }
- }
- }
- //EnergyHammer
- if(instance_exists(EnergyHammerSlash))
- {
- with(EnergyHammerSlash)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.EnergyHammerSlash = instance_create(x, y, EnergySlash);
- global.EnergyHammerSlash.speed = speed;
- global.EnergyHammerSlash.direction = direction;
- global.EnergyHammerSlash.image_angle = random(360);
- with (EnergySlash) team = 2
- instance_destroy();
- }
- }
- }
- //Energy shank
- if(instance_exists(EnergyShank))
- {
- with(EnergyShank)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.EnergyShank = instance_create(x, y, EnergyHammerSlash);
- global.EnergyShank.speed = speed;
- global.EnergyShank.direction = direction;
- global.EnergyShank.image_angle = random(360);
- with (EnergyHammerSlash) team = 2
- instance_destroy();
- }
- }
- }
- //Bazooka
- if(instance_exists(Rocket))
- {
- with(Rocket)
- {
- global.Rocket = instance_create(x, y, HealthChest);
- global.Rocket.speed = speed;
- global.Rocket.direction = direction;
- global.Rocket.image_angle = random(360);
- wait(15)
- instance_destroy();
- }
- }
- //Bloodhammer
- if(instance_exists(BloodSlash))
- {
- with(BloodSlash)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.BloodSlash = instance_create(x, y, EnergyHammerSlash);
- global.BloodSlash.speed = speed;
- global.BloodSlash.direction = direction;
- global.BloodSlash.image_angle = random(360);
- with (EnergyHammerSlash) team = 2
- instance_destroy();
- }
- }
- }
- //Lightninghammer
- if(instance_exists(LightningSlash))
- {
- with(LightningSlash)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.LightningSlash = instance_create(x, y, EnergyHammerSlash);
- global.LightningSlash.speed = speed;
- global.LightningSlash.direction = direction;
- global.LightningSlash.image_angle = random(360);
- with (EnergyHammerSlash) team = 2
- instance_destroy();
- }
- }
- }
- //Heavyslug
- if(instance_exists(HeavySlug))
- {
- with(HeavySlug)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.HeavySlug = instance_create(x, y, ProtoChest);
- global.HeavySlug.speed = speed;
- global.HeavySlug.direction = direction;
- global.HeavySlug.image_angle = random(360);
- with (EnergyHammerSlash) team = 2
- instance_destroy();
- }
- }
- }
- //PlasmaHuge
- if(instance_exists(PlasmaHuge))
- {
- with(PlasmaHuge)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.PlasmaHuge = instance_create(x, y, GiantWeaponChest);
- global.PlasmaHuge.speed = speed;
- global.PlasmaHuge.direction = direction;
- global.PlasmaHuge.image_angle = random(360);
- with (EnergyHammerSlash) team = 2
- instance_destroy();
- }
- }
- }
- //Toxic
- if(instance_exists(ToxicBolt))
- {
- with(ToxicBolt)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.ToxicBolt = instance_create(x, y, GiantAmmoChest);
- global.ToxicBolt.speed = speed;
- global.ToxicBolt.direction = direction;
- global.ToxicBolt.image_angle = random(360);
- instance_destroy();
- }
- }
- }
- //Disc
- if(instance_exists(Disc))
- {
- with(Disc)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Disc = instance_create(x, y, Disc);
- global.Disc.speed = 100;
- global.Disc.direction = direction;
- global.Disc.image_angle = random(360);
- with (Disc) team = 2
- instance_destroy();
- }
- }
- }
- if(instance_exists(HyperSlug))
- {
- with(HyperSlug)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.HyperSlug = instance_create(x, y, LastBall);
- global.HyperSlug.speed = 100;
- global.HyperSlug.direction = direction;
- global.HyperSlug.image_angle = random(360);
- with (LastBall) team = 2
- instance_destroy();
- }
- }
- }
- //Plasma gun
- if(instance_exists(Player))
- {
- with(PlasmaBall)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- PlasmaBall.speed = 25;
- with (PlasmaBall) team = 2;
- }
- }
- }
- //Plasma cannon
- if(instance_exists(Player))
- {
- with(PlasmaBig)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- PlasmaBig.speed = 30;
- with (PlasmaBall) team = 2;
- }
- }
- }
- //Flare
- if(instance_exists(Flare))
- {
- with(Flare)
- {
- if(object_index != Flame
- && object_index != ToxicGas)
- {
- global.Disc = instance_create(x, y, LastBall);
- global.Disc.speed = 100;
- global.Disc.direction = direction;
- global.Disc.image_angle = random(360);
- with (LastBall) team = 2
- instance_destroy();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment