Page 2 of 2

Re: Useful LunaLua Documentation Quick Links

Posted: Tue May 10, 2016 1:13 pm
by Enjl
fireflower30 wrote:
Enjl wrote:
fireflower30 wrote:Most of the Links in it are Red, so I had to search up a lua on the wiki, I found one, but now I keep on getting this error:
The lines are described to the right of the red links. They don't need their own individual page.
The error you're getting means that lua is unable to find your specified custom music file. Can I see your code?
Here:

Code: Select all

-- Loads a music file into music stream
Audio.MusicOpen("level.mp3")
-- Starts playback of current music in stream
Audio.MusicPlay()

Audio.SeizeStream(0)
I suggest you read through the basic lunalua tutorials. Few things:
1) You wanna wrap that into the onStart function.
2) No need to seize the stream
3) Make absolutely sure the audio file level.mp3 is in the level custom graphics folder. (1 folder below the level file itself)

Re: Useful LunaLua Documentation Quick Links

Posted: Mon Feb 13, 2017 2:53 am
by Mosaic
Can the unsused NPC ais be used to give an npc a custom ai?

Re: Useful LunaLua Documentation Quick Links

Posted: Mon Feb 13, 2017 7:19 am
by PixelPest
MosaicMario wrote:Can the unsused NPC ais be used to give an npc a custom ai?
I don't think so

Re: Useful LunaLua Documentation Quick Links

Posted: Mon Feb 13, 2017 9:08 am
by Hoeloe
PixelPest wrote:
MosaicMario wrote:Can the unsused NPC ais be used to give an npc a custom ai?
I don't think so
You can use it to store data, but you're better off using pnpc's data table.