Some lua libraries I made for my episode (F-Commands, pause screen, etc.)
Posted: Tue Nov 30, 2021 10:45 pm
Finally, after 2-3 weeks, I think my code for these libraries are stable enough to release.
commandlist.lua
This is a command list example if you want to use these F-Command libraries, or if you wanna see how it works.
exitcommands.lua
Commands that are an alternative to the pause menu. You use F1, and you can press any of the following:
malcwarp.lua
Simple command to restart, exit, or warp to an HUB of your choice. Simply replace "MALC - HUB.lvlx" to anything of your choice.
malcwarp_map.lua
Same as the last, but it has teleporting. To get coordinates to replace these SMAS++ coordinates, right click on a level in PGE, and go to "Copy preferences" -> "Position: X, Y"
mapp3d.lua
A fixed up version of Hoeloe's lua code that supports Beta 4 tiles, levels, sceneries, and probably more. To make it work, put the file in your episode and use the following require line in the map.lua file:
local map3d = API.load("mapp3d")
pausemenu.lua
Useful for anyone who's asking for a custom pause menu. Unlike these other command lua's I made, it's controller compatible. Press pause again to unpause, up to save and continue, down to save and quit. Use left and right as well to change characters.
thecostume.lua
Don't forget to change your character and/or costume on the fly! Use F6 to boot up the command list.
thecostume_map.lua
Same as last, but a command version of switching characters for map.lua. Costumes don't work, so that's why it's not an option on this one.
------
If you want a download link, here you go!
Credit me (And Hoeloe for the mapp3d library) when you are using the libraries.
commandlist.lua
This is a command list example if you want to use these F-Command libraries, or if you wanna see how it works.
Spoiler: show
Commands that are an alternative to the pause menu. You use F1, and you can press any of the following:
Spoiler: show
Simple command to restart, exit, or warp to an HUB of your choice. Simply replace "MALC - HUB.lvlx" to anything of your choice.
Spoiler: show
Same as the last, but it has teleporting. To get coordinates to replace these SMAS++ coordinates, right click on a level in PGE, and go to "Copy preferences" -> "Position: X, Y"
Spoiler: show
A fixed up version of Hoeloe's lua code that supports Beta 4 tiles, levels, sceneries, and probably more. To make it work, put the file in your episode and use the following require line in the map.lua file:
local map3d = API.load("mapp3d")
Spoiler: show
Useful for anyone who's asking for a custom pause menu. Unlike these other command lua's I made, it's controller compatible. Press pause again to unpause, up to save and continue, down to save and quit. Use left and right as well to change characters.
Spoiler: show
Don't forget to change your character and/or costume on the fly! Use F6 to boot up the command list.
Spoiler: show
Same as last, but a command version of switching characters for map.lua. Costumes don't work, so that's why it's not an option on this one.
Spoiler: show
If you want a download link, here you go!
Credit me (And Hoeloe for the mapp3d library) when you are using the libraries.