Code: Select all
function onTick()
for _, n in pairs(NPC.get(40, -1)) do --for all Birdo Eggs in all sections
n.id = 210 --turn Birdo Eggs into Rinkas
end
end
I am trying to change Birdo eggs into Rinkas, but I can't get the right code. Is this correct?
Code: Select all function onTick() Jayce777
Very skilled gamer Very intelligent e=2.71... (5x+2)(5x-2)=25x^2 Plays Super Mario Maker Often I support: [spoiler][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=3610&p=44996#p44996][img]http://i782.photobucket.com/albums/yy104/henryrichard1234/qLvulGW%201_zpshylsf0or.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=31&t=11593][img]http://i1063.photobucket.com/albums/t520/Pwner523746/Graphics%20pack%20logo.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=467&p=2740#p2740][img]http://s10.postimg.org/9dpghzcfd/support_banner.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=13458][img]http://i.imgur.com/vidjJFM.png[/img][/url][/spoiler] | ||
Re : Change Projectiles?My laptop is broken, so I cannot. I may tweak it.
Will this fix width and height? Code: Select all function onTick() EDIT : My laptop may get fixed soon, so I can test it later. Jayce777
Very skilled gamer Very intelligent e=2.71... (5x+2)(5x-2)=25x^2 Plays Super Mario Maker Often I support: [spoiler][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=3610&p=44996#p44996][img]http://i782.photobucket.com/albums/yy104/henryrichard1234/qLvulGW%201_zpshylsf0or.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=31&t=11593][img]http://i1063.photobucket.com/albums/t520/Pwner523746/Graphics%20pack%20logo.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=467&p=2740#p2740][img]http://s10.postimg.org/9dpghzcfd/support_banner.png[/img][/url][url=https://www.smbxgame.com/forums/viewtopic.php?f=34&t=13458][img]http://i.imgur.com/vidjJFM.png[/img][/url][/spoiler] | ||
This looks like it should work. You don't need to change the collision fields, though. Those fields are collision flags, meaning they would only be true if the NPC was colliding with a block. Setting them to false for one frame is really pointless. In fact, messing with the collision flags at all is pointless, since Rinkas don't interact with blocks anyway.
Dirty Rinka lover. | ||
Change Bomb to Boomerang (both player items)Hello Guys.
I want to have a boomerang suit for Mario, Luigi, Peach and Toad. Toad's no problem as he throws boomerangs by default.Mario and Luigi aren't either as I've found some code for them that works fine. But for Peach, I tried it with the same script, with the same script with the conditional if player.character == CHARACTER_PEACH then added and with the following code that fits this topic: Code: Select all if player.character == CHARACTER_PEACH then So can anyone say me why it doesn't work or if player objects just can't be modified with that script (which is imo unlogic as they're NPCs like any other NPC.) Btw, it didn't throw an error so the syntax is correct in my code even if the amount of ends issn't correct in this extract. | ||
function onTick() must be outside the if statement like this:
Code: Select all function onTick() | ||
Peach Boomerang codeThanks for your help but somehow Peach still throws bombs.
Could someone please help me out as I don't have the slightest idea of what the problem is. | ||
Who is online (over the past 5 minutes)Users browsing this forum: 3 guests | ||