update readme
This commit is contained in:
parent
73eeda4342
commit
829215cbae
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -36,16 +36,16 @@ For modders, an interop module is included. Use it like so:
|
|||
|
||||
```Lua
|
||||
|
||||
local interop = require("celediel.DoorRandomizer.interop") -- the module
|
||||
local doorRandomizer = require("celediel.DoorRandomizer.interop") -- the module
|
||||
|
||||
local chance = interop.getRandomizeChance() -- get global randomize chance
|
||||
interop.setRandomizeChance(chance + 25) -- set global randomize chance
|
||||
local chance = doorRandomizer.getRandomizeChance() -- get global randomize chance
|
||||
doorRandomizer.setRandomizeChance(chance + 25) -- set global randomize chance
|
||||
|
||||
-- https://mwse.readthedocs.io/en/latest/lua/type/tes3door.html
|
||||
local door -- a tes3door references
|
||||
|
||||
interop.randomizeDoor(door, 100) -- overrides randomize chance for this one door
|
||||
interop.unRandomizeDoor(door) -- removes overrides
|
||||
doorRandomizer.randomizeDoor(door, 100) -- overrides randomize chance for this one door
|
||||
doorRandomizer.unRandomizeDoor(door) -- removes overrides
|
||||
```
|
||||
|
||||
## Requirements ##
|
||||
|
|
Loading…
Add table
Reference in a new issue