[NPC Pack] Eating Vine Heads

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Arctangent
Goomba
Goomba
Posts: 3
Joined: Tue May 28, 2019 4:51 pm
Flair: squawky

[NPC Pack] Eating Vine Heads

Postby Arctangent » Mon Jun 03, 2019 10:01 pm

Image

Vine heads that replicate Super Mario World's more closely, eating blocks that don't block their path - and solid blocks, too, if they're directly above where they spawn! They'll also eat NPCs like coins, and can be configured to eat a lot more or a lot less.

Comes in regular, mutant, and player-controlled variations.

Download here!

Installation instructions are as usual.

Configuration:
Spoiler: show
If you're creating a new type of vine head, then you'll need to call eaterVine.registerVine(npcID) to make the NPC work properly. Copying a premade vine head's npc-n.lua and changing the id will work just fine for that, though.

NPC codes:
ignorevine: Boolean. Sets whether the vine head will be blocked upon encountering the same type of vine it leaves behind. Treats both types of mutant vines as the same.
breakblocks: Boolean. Sets whether or not eaten blocks will be visually broken, or if they just disappear.
eatsolidblocksonspawn: Boolean. Sets whether or not solid blocks will be eaten if they're directly adjacent to the vine's spawn point.
eatsemisolidblocks: Boolean. Sets whether or not semisolid blocks will be eaten. Does not include sizeables. If false, both semisolid blocks and sizeables will block a downwards-moving head trying to move through their top.
eatnonsolidblocks: Boolean. Sets whether or not non-solid blocks will be eaten.
eatplayersolidblocks: Boolean. Sets whether or not player-solid blocks will be eaten.
eatmegasmashableblocks: Boolean. Sets whether or not mega-smashable blocks will be eaten.
eatcollectiblenpcs: Boolean. Sets whether or not collectible NPCs ( like coins ) that are not powerups will be eaten.
eatpowerupnpcs: Boolean. Sets whether or not powerup NPCs will be eaten.
eathittablenpcs: Boolean. Sets whether or not hittable NPCs will be eaten.
eatmultihitnpcs: Boolean. Sets whether or not multi-hit NPCs will be eaten. Deals 1 damage every tick the vine head is colliding with them while they're able to be damaged.
vineid: Integer. The id of the NPC spawned as a vine. Does not actually have to be a vine.
mutant: Boolean. Whether or not the vine head is mutant and will respond to to redirectors. Does not have to spawn the mutant vine NPC.
playercontrolled: Boolean. Whether or not the vine head reacts to player input. Overrides the mutant setting.
accelerating: Boolean. A mutant vine head with this set that encounters a redirector in the same direction it's moving in will double its speed. Won't move faster than a block a tick and loses the speed upon turning.
decelerating: Boolean. A mutant vine head with this set that encounters a redirector in the opposite direction it's moving in will halve its speed. Turns as normal if the vine head is moving at its starting speed, so this has no real effect unless combined with the accelerating setting.
Changelog:
Spoiler: show
v1.0
Created. Includes eating vine heads, eating mutant vine heads, and player-controlled eating mutant vine heads. And an excessive amount of configuation options.

Return to “LunaLua”

Who is online

Users browsing this forum: KoragusuMaster and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari