The reminisce menu lets you replay any seen event while talking to an NPC on the phone. It works based on json files for each NPC located in the mod's assets/events folder. You can create your own events file and either put it in the mod's assets/events folder, or create a content pack for this mod and put it in the content pack's assets/events folder. Creating an events content pack works the same as theme content packs and is explained here.
Here's assets/events/Sebastian.json as an example:
{
"events": [
{
"name": "Sebastian-event-0",
"location": "SebastianRoom",
"eventId": "2794460",
"night": false,
"mail": null
},
{
"name": "Sebastian-event-1",
"location": "Mountain",
"eventId": "384883",
"night": false,
"mail": null
},
{
"name": "Sebastian-event-2",
"location": "SebastianRoom",
"eventId": "27",
"night": false,
"mail": "choseWarrior,choseWizard,choseHealer,killedSkeleton,destroyedPods,savedFriends"
},
{
"name": "Sebastian-event-3",
"location": "Beach",
"eventId": "29",
"night": false,
"mail": null
},
{
"name": "Sebastian-event-4",
"location": "Mountain",
"eventId": "384882",
"night": false,
"mail": null
},
{
"name": "Sebastian-event-5",
"location": "Mountain",
"eventId": "9333219",
"night": false,
"mail": null
},
{
"name": "Sebastian-event-6",
"location": "FarmHouse",
"eventId": "9333220",
"night": false,
"mail": null
}
]
}
Each node in "events" has up to five elements:
- name is now a label that refers to an entry in the i18n folder files. At the least you will have to add an entry in i18n/default.json for each title you add (optionally for other language files as well).
- location is the name of the location, as per the json file in the game's Data/Events folder (events are sorted by location in the game, not by NPC).
- eventId is the event id at the beginning of the key in Data/Events files. e.g. 2794460 for "2794460/f Sebastian 500/p Sebastian" in Data/Events/SebastianRoom.json
- night is whether the time should be forced to be night (doesn't do anything yet, this might change, as we probably need to force day as well, if I can figure out how)
- mail provides a list of "mail" flags that should be reset before starting the event, in order to allow making new choices. I'm not sure if this works, needs testing.
Create a similar file for your custom NPC with your NPC's events, and name it <NPCName>.json and place it with the others.
0 comments