<aside> 💡

under construction, topics can appear hovering to the right

</aside>

tutorials

quest reward

snippets: todo

basics

https://openmw.readthedocs.io/en/latest/reference/lua-scripting/overview.html

script for lua hotreloading, PLAYER:

local debug = require('openmw.debug')

local function onKeyPress(key)
  if key.symbol == 'p' then
    debug.reloadLua()
  end
end

return { engineHandlers = { onKeyPress = onKeyPress } } 

adding script in omwscripts file

<aside> 💡

openmwscripts file is a text file with definitions of loaded scripts filepaths in used datafiles and their context of running like global, menu, player, custom and game object types.

like PLAYER: csriptfolder/script.lua for players or NPC, CREATURE: for both npcs and creatures

https://openmw.readthedocs.io/en/latest/reference/lua-scripting/overview.html#format-of-omwscripts - Format of .omwscripts

</aside>

package’s local, global, player, menu, custom, including

<aside> 💡

<aside> 💡

<aside> 💡

<aside> 💡

<aside> 💡