How do I load up PNPC and all other scripts for use in MAGLX3?

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Chilly14
Snifit
Snifit
Posts: 230
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

How do I load up PNPC and all other scripts for use in MAGLX3?

Postby Chilly14 » Fri Jul 26, 2019 12:27 pm

Title.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: How do I load up PNPC and all other scripts for use in MAGLX3?

Postby Enjl » Fri Jul 26, 2019 12:29 pm

https://wohlsoft.ru/pgewiki/Category:LunaLua_API
https://docs.google.com/document/d/1uOd ... vPFaA/edit#
https://www.youtube.com/playlist?list=P ... 8eONYCNMzI_

You load a library by its name and save the reference into a variable:

local pnpc = require("pnpc")

Chilly14
Snifit
Snifit
Posts: 230
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: How do I load up PNPC and all other scripts for use in MAGLX3?

Postby Chilly14 » Fri Jul 26, 2019 12:32 pm

Thanks.

Added in 3 minutes 38 seconds:
Actually, something's kinda wrong. Nothing seems to be happening, even though I made a luna.lua file.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: How do I load up PNPC and all other scripts for use in MAGLX3?

Postby Enjl » Fri Jul 26, 2019 12:55 pm

Chilly14 wrote:
Fri Jul 26, 2019 12:35 pm
Thanks.

Added in 3 minutes 38 seconds:
Actually, something's kinda wrong. Nothing seems to be happening, even though I made a luna.lua file.
What do you expect to be happening from just loading a library that serves as a helper for saving data in npcs? Pnpc is made for npc code and doesn't have any passive effects on the game.

Chilly14
Snifit
Snifit
Posts: 230
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: How do I load up PNPC and all other scripts for use in MAGLX3?

Postby Chilly14 » Fri Jul 26, 2019 1:02 pm

Enjl wrote:
Fri Jul 26, 2019 12:55 pm
Chilly14 wrote:
Fri Jul 26, 2019 12:35 pm
Thanks.

Added in 3 minutes 38 seconds:
Actually, something's kinda wrong. Nothing seems to be happening, even though I made a luna.lua file.
What do you expect to be happening from just loading a library that serves as a helper for saving data in npcs? Pnpc is made for npc code and doesn't have any passive effects on the game.
Oh, yeah. I see now...sorry about that.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests