How do I Modify what can go on clear Pipes and Tracks

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 651
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

How do I Modify what can go on clear Pipes and Tracks

Postby mariobrigade2018 » Tue Nov 07, 2023 12:39 pm

I heard that you can modify what can and cannot enter clear pipes and the track BGO's. But how do I do that?

AppleTheTomato
Buster Beetle
Buster Beetle
Posts: 89
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

Re: How do I Modify what can go on clear Pipes and Tracks

Postby AppleTheTomato » Tue Nov 07, 2023 1:34 pm

I'm not sure about track BGOs, but here's how I typically do that clearpipe one, using an example from one of my levels.
Just stick this in your luna.lua file, change the numbers in the clearNPCs table to the IDs of the NPCs you want, and all should be good:

Code: Select all

local clearNPCs = {579,578,414,282,281,280,71,23}
local c = require("blocks/ai/clearpipe")

for _,npc in ipairs(clearNPCs) do
	c.registerNPC(npc)
end


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari