Eclipsed wrote: ↑Sat Apr 18, 2020 9:18 am
Enjl wrote: ↑Sat Apr 18, 2020 8:23 am
Why would someone want to use this over a regular lua script?
They might be too lazy to create an event attached to the message, and create a lua file to answer your question. There’s really no long term benefits however to this method in the thread since it’s really hard to see your text in an smbx message.
Perhaps... I'm mostly concerned about how hard to find it will be in case something breaks, or how terrible the formatting in the message box window is. You don't even need an event either, just fill in a dummy message:
Code: Select all
function onMessageBox(eventObj, message)
if message == "dummyMessage" then
eventObj.cancelled = true
player.speedX = -9
end
end
And making a lua file is as simple as clicking a button in the editor, so it's arguably faster and easier to do it properly.