Help me guys

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
King Godzilla
Hoopster
Hoopster
Posts: 46
Joined: Sun Sep 27, 2015 11:28 am

Help me guys

Postby King Godzilla » Fri Apr 22, 2016 7:48 pm

I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Last edited by King Godzilla on Sat Apr 23, 2016 9:56 pm, edited 1 time in total.

Nerx
Swooper
Swooper
Posts: 75
Joined: Thu Apr 14, 2016 12:57 pm

Re: Help me guys

Postby Nerx » Fri Apr 22, 2016 8:01 pm

You'll want to set an AI value of some sort for each of your npcs, you can find a list here. I think this should work in this case, there's not anything specific for sml2 paragoombas.

King Godzilla
Hoopster
Hoopster
Posts: 46
Joined: Sun Sep 27, 2015 11:28 am

Re: Help me guys

Postby King Godzilla » Sat Apr 23, 2016 9:56 pm

Nerx wrote:You'll want to set an AI value of some sort for each of your npcs, you can find a list here. I think this should work in this case, there's not anything specific for sml2 paragoombas.

Code: Select all

NPCMemSet,30,0xE2,243,0,0,w
Here is the code I used.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Help me guys

Postby PixelPest » Sat Apr 23, 2016 9:58 pm

LunaDLL is really deprecated. You should probably use LunaLua since that's what more people know and can help you with

TDK
Phanto
Phanto
Posts: 1440
Joined: Wed Nov 11, 2015 12:26 pm
Flair: Retired

Re: Help me guys

Postby TDK » Mon Apr 25, 2016 3:53 pm

King Godzilla wrote:I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Try this:

Code: Select all

for k,v in pairs(NPC.get(243,player.section)) do
	v.ai1 = 1
end

RhysOwens
Nipper
Nipper
Posts: 423
Joined: Fri Apr 22, 2016 2:53 am

Re: Help me guys

Postby RhysOwens » Wed Apr 27, 2016 2:39 am

TheDinoKing432 wrote:
King Godzilla wrote:I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Try this:

Code: Select all

for k,v in pairs(NPC.get(243,player.section)) do
	v.ai1 = 1
end
He said LunaDLL but I pasted a code into a blank lua file and it worked for me.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari