LUNADLL tutorial: New powerups,change NPC's weapon (throwable)

Description: Archive discussion
============================
Original description:
Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.

Veudekato M
Topic author, Viscount
Viscount
Avatar
Veudekato M
Topic author, Viscount
Viscount
Reputation: 79
Posts: 369
Joined: 19 Feb 2014
Location: Russia

Post #1by Veudekato » 15 Sep 2014, 13:07

I will tell you how to make new power ups of mario (luigi,peach,toad,and maybe* link)

NOTE: we will change NPC's ID that throw player.

1.Make Custom gfx
2.find out npc's ID that player throw. (and will throw )( http://wohlsoft.ru/docs/_SMBX64/Objects/NPC List.pdf )
3. Make lunadll code.


Example
Spoiler
all player throw bombs
NPCMemSet,292,0xE2,291,0,0,w
NPCMemSet,171,0xE2,291,0,0,w

all player throw hammers

NPCMemSet,292,0xE2,171,0,0,w
NPCMemSet,291,0xE2,171,0,0,w

all player throw boomerangs

NPCMemSet,171,0xE2,291,0,0,w
NPCMemSet,291,0xE2,291,0,0,w

note - toad have some another structure - he throws longer. :!:


mario throw bombs (peach's bombs)

NPCMemSet,171,0xE2,291,0,0,w

171 - NPC's ID of hammer (hammer mario throw hammer)

291 - NPC's ID of peach's bomb . (bomb peach throw bombs)


171 - NPC's ID that we will replace at 291 - NPC's ID which we will replace the hammer .

Now Mario throw NPC 291 - peach's bomb! . You also can do this with any NPC. (It meaning enemy can throw another npc) You can make : Larry koopa throw other npc. search npc's ID that he throw and npc's ID that you want to he throw .
(This cose only replace NPC with another NPC)


Thanks for reading. I wish you good codes . ;)

- Veudekato :hi:


PS: Sorry for bad english. You can discuss and ask here.
My channel (PlatGEnWohl news and tutorials , smbx tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q

Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest