Page 1 of 1
Changing Magikoopa Spawns
Posted: Tue May 26, 2020 6:46 pm
by ANueUtsuho
Is there any way I could alter what Magikoopas turn Flip Blocks into? I'd like to get rid of the Fighter Flies, or just make them spawn less often.
Re: Changing Magikoopa Spawns
Posted: Wed May 27, 2020 1:03 am
by Emral
Load npc-300.lua in your lua file, and change the contents of the "transformations" variable (they're NPC IDs). Here's the loading code with the list set to what it currently is. Every entry is equally likely to appear.
local magic = require("npcs/npc-300")
magic.transformations = {54, 112, 33, 185, 301, 165}
Re: Changing Magikoopa Spawns
Posted: Wed May 27, 2020 7:24 am
by Hoeloe
Enjl wrote: ↑Wed May 27, 2020 1:03 am
Load npc-300.lua in your lua file
This isn't possible to do. Attempting it load npc-n.lua files produces an error.
This particular NPC had an oversight when converting it to npc-n.lua, and this should have been moved into their NPC config. This will be fixed in the next patch.
Re: Changing Magikoopa Spawns
Posted: Wed May 27, 2020 7:28 am
by Emral
Ah, darn bugs.
Until then you can get the same effect by copying npc-300.lua to your level folder and renaming it to npc-751.lua, and copy the magikoopa magic image sprite to the same filename too. You can then use npc-299.txt for the magikoopa to set "magic=751", to make the magikoopa shoot the new custom magic NPC.