Changes

Jump to navigation Jump to search
→‎Custom spouse outside areas: + full Content Patcher example
Line 347: Line 347:  
You can mark where the spouse stands in their spouse area by placing the red circle path tile (tile index 7) on [[Modding:Maps#Paths layer|the <tt>Paths</tt> layer]].
 
You can mark where the spouse stands in their spouse area by placing the red circle path tile (tile index 7) on [[Modding:Maps#Paths layer|the <tt>Paths</tt> layer]].
   −
For example, <code>"Abigail": "spousePatios/0/16 16 16 16 17 17 17 17 17 17 18 18 18 18 18 19 19 19 19 19/1 5"</code> sets Abigail's outdoor area to the first one defined in the <tt>Maps/spousePatios</tt> asset, cycles her sprite through spritesheet indexes 16&ndash;19 for 500 milliseconds each, and offsets her 1 pixel to the right and 5 pixels down in the outdoor area.
+
For example, this Content Patcher pack would add the outside area for a new Akila NPC. When in the outside area, their sprite would cycle through spritesheet indexes 16&ndash;19 for 300 milliseconds each, and be offset by 1 pixel to the right and 5 pixels down.
 +
{{#tag:syntaxhighlight|
 +
{
 +
    "Format": "{{Content Patcher version}}",
 +
    "Changes": [
 +
        // register outside area
 +
        {
 +
            "Action": "EditData",
 +
            "Target": "Data/SpousePatios",
 +
            "Entries": {
 +
                "Akila": "Pathoschild_ExampleAkilaMod_OutsideArea/0/16 16 16 17 17 17 18 18 18 19 19 19/1 5"
 +
            }
 +
        },
 +
 
 +
        // load spouse map
 +
        {
 +
            "Action": "Load",
 +
            "Target": "Maps/Pathoschild_ExampleAkilaMod_OutsideArea",
 +
            "FromFile": "assets/outside-area.tmx"
 +
        }
 +
    ]
 +
}|lang=javascript}}
    
===Custom farmhouse renovations===
 
===Custom farmhouse renovations===
translators
8,403

edits

Navigation menu