Is there any way to change the next level to be loaded after completing a level in Lua, without calling your own G_ExitLevel?
You can use runsoc scripts triggered by the level to load new SOC lumps to overwrite the level header. Unless the nextlevel is loaded ahead of time, that should be sufficient to change the nextlevel mid-game.That's the level header, a static-unchanging value. I need to be able to change the next level mid-game, essentially. Under X conditions I want them to continue normally, and under Y conditions I want them to go to a different level, etc. And no, a custom exit won't suffice, because it needs to be universally functional across any level.
And no, a custom exit won't suffice, because it needs to be universally functional across any level.