Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create permanent records in code #21

Open
uramer opened this issue Jun 19, 2020 · 0 comments
Open

Create permanent records in code #21

uramer opened this issue Jun 19, 2020 · 0 comments
Labels
core Things that affect how code runs

Comments

@uramer
Copy link

uramer commented Jun 19, 2020

Instead of providing spells (or other records) in a record store json, add them by running an OnServerPostInit handler

customEventHooks.registerHandler('OnServerPostInit', function()
    RecordStores.spell.data.permanentRecords["test"] = {
        baseId = "p_fortify_personality_b",
        name = "Bread test"
}
end)
@testman42 testman42 added the core Things that affect how code runs label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Things that affect how code runs
Projects
None yet
Development

No branches or pull requests

2 participants