Page 1 of 1

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

Posted: Fri Jul 26, 2019 12:27 pm
by Chilly14
Title.

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

Posted: Fri Jul 26, 2019 12:29 pm
by Enjl
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")

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

Posted: Fri Jul 26, 2019 12:32 pm
by Chilly14
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.

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

Posted: Fri Jul 26, 2019 12:55 pm
by Enjl
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.

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

Posted: Fri Jul 26, 2019 1:02 pm
by Chilly14
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.