[Solved] How to script the difficulty?
Posted: 13 Jul 2019, 23:30
I am trying to understand how to implement a script to scale the difficulty with the character level. It can be done in tes3mp [1], seems like a simple lua script will do the job. However, the wiki page of scripting [2] is not that clear. And the documentation [3] on scripting in openmw-cs is non-existent.
I guess I just have to write a simple lua/python script, than load it by aliasing openmw to openmw script-run=... . Here are my questions -
System: Windows 10, normally I use MSYS2(mingw64) shell to manage dependencies.
1. The script in [1] doesn't have the omw prefix mentioned in [2], could anyone provide the correct lua script that works with script-run=...?
2. What exactly are the required dependencies? Must I have lua5.1? What about lua5.3? Can openmw (built by MSVC) use the lua library in the MSYS2 repo(which means it should be built by mingw)?
3. Can I do this without external lua scripting? It seems like I can create a simple mod for this, if so, can anyone provide some simple instructions?
[1]: https://www.reddit.com/r/tes3mp/comment ... _level_up/
[2]: https://wiki.openmw.org/index.php?title ... ion#Github
[3]: https://openmw.readthedocs.io/en/stable ... index.html
I guess I just have to write a simple lua/python script, than load it by aliasing openmw to openmw script-run=... . Here are my questions -
System: Windows 10, normally I use MSYS2(mingw64) shell to manage dependencies.
1. The script in [1] doesn't have the omw prefix mentioned in [2], could anyone provide the correct lua script that works with script-run=...?
2. What exactly are the required dependencies? Must I have lua5.1? What about lua5.3? Can openmw (built by MSVC) use the lua library in the MSYS2 repo(which means it should be built by mingw)?
3. Can I do this without external lua scripting? It seems like I can create a simple mod for this, if so, can anyone provide some simple instructions?
[1]: https://www.reddit.com/r/tes3mp/comment ... _level_up/
[2]: https://wiki.openmw.org/index.php?title ... ion#Github
[3]: https://openmw.readthedocs.io/en/stable ... index.html