lua events for leveling mods

Feedback on past, current, and future development.
Post Reply
LoneWolf
Posts: 138
Joined: 26 Sep 2017, 19:13

lua events for leveling mods

Post by LoneWolf »

I like Madd Leveler a lot and have been toying with the idea to write (or help writing) a modern spiritual successor to it. There are also several mwse-lua leveling mods that use interesting approaches.

I expect that such mods will require many addtions to openmw lua, but one has to start somewhere.

Looking at the Madfd Leveler code a big part of it is a loop that runs every second to track changes in skills and attributes and act on them.
In openmw lua this functionality could be achieved in an engine handler local script attached to a player.

This handler would need to be called by the engine whenever a skill or attibute changes. A possibility to achieve this would be to introduce 2 events OnSkillChange(Skill-Id, amount) & OnAtrributeChange (Attribute-Id, amount) .

Is the game engine ready to deal with such events ? How can I help to get them in ?
Post Reply