Changes

Jump to navigation Jump to search
→‎Custom spouse rooms: + example content pack
Line 404: Line 404:  
<li>Some of the game's spouse room code (e.g. positions for Sebastian's 14-heart frog terrarium) was updated to potentially allow moving spouse rooms around. However, some things like event positions are still hardcoded and will need to be fixed to fully support this feature.</li>
 
<li>Some of the game's spouse room code (e.g. positions for Sebastian's 14-heart frog terrarium) was updated to potentially allow moving spouse rooms around. However, some things like event positions are still hardcoded and will need to be fixed to fully support this feature.</li>
 
</ul>
 
</ul>
 +
 +
For example, this Content Patcher pack would add a spouse room for a new Akila NPC:
 +
{{#tag:syntaxhighlight|
 +
{
 +
    "Format": "{{Content Patcher version}}",
 +
    "Changes": [
 +
        // register spouse room
 +
        {
 +
            "Action": "EditData",
 +
            "Target": "Data/SpouseRooms",
 +
            "Entries": {
 +
                "Akila": "Pathoschild_ExampleAkilaMod_SpouseRoom/0"
 +
            }
 +
        },
 +
 +
        // load spouse room map
 +
        {
 +
            "Action": "Load",
 +
            "Target": "Maps/Pathoschild_ExampleAkilaMod_SpouseRoom",
 +
            "FromFile": "assets/spouse-room.tmx"
 +
        }
 +
    ]
 +
}|lang=javascript}}
    
===Custom spouse outside areas===
 
===Custom spouse outside areas===
translators
8,444

edits

Navigation menu