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

Allow mods to modify scenarios #15251

Merged
merged 5 commits into from Feb 9, 2016

Conversation

Projects
None yet
5 participants
@BevapDin
Copy link
Contributor

commented Feb 5, 2016

Example from More Survival Tools:

{
    "type": "scenario",
    "ident": "wilderness",
    "edit-mode": "modify",
    "add:professions" : ["wanderer", "caveman"],
    "add:allowed_locs" : ["swamp"]
}

This just adds the new professions and start location to the existing scenario. Mods may also change name, description points, flags and all the other properties of scenarios.

@MisterFelixFox

This comment has been minimized.

Copy link
Contributor

commented Feb 5, 2016

I was right about to ask if it worked between two mods but your own example was the one I was wanting to modify. Thanks again

@Zireael07

This comment has been minimized.

Copy link
Contributor

commented Feb 6, 2016

yaaay!

@BevapDin

This comment has been minimized.

Copy link
Contributor Author

commented Feb 7, 2016

if it worked between two mods

Yes, it does. Once a mod is loaded, it's data is basically merged into the already loaded core data. When the next mod gets loaded, it won't see any difference and can't even tell whether the existing data has been loaded from core files or from a mod.

@kevingranade kevingranade merged commit 8dc012e into CleverRaven:master Feb 9, 2016

1 check passed

default
Details
@Malkeus

This comment has been minimized.

Copy link
Contributor

commented Feb 9, 2016

Would it be possible to put in some documentation for this and other modification formats? Unless I've overlooked it, the only place to see what's possible is by dissecting the PR's that add the ability to mod an entry.

@BevapDin BevapDin deleted the BevapDin:fed branch Feb 9, 2016

@BevapDin

This comment has been minimized.

Copy link
Contributor Author

commented Feb 9, 2016

Yes, documentation is scheduled and will be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.