Replacing a resource file to modify the Lua script