Skip to content

Example Mods

Willow Lockehart edited this page Apr 9, 2024 · 18 revisions

All Camp Clothes in the Camp Chest

Single Container and UUID, the simplest possible ISF integration.

Debug Book in the Host's Inventory

uses host, spawns during the tutorial

Infinite Supply Packs

This mod spawns a Heavy Supply Pack in the host's inventory once the ISF recognizes that the player does not have any, and when the player chooses to end the day. It utilizes two main features of the ISF's Config file to do so. The DayEnd, and FrameworkCheck variables.

By setting DayEnd to true, it tells the framework to attempt to spawn in the Heavy Supply Pack after the player has ended the day (but before they have actually Long Rested).

By setting FrameworkCheck to false, the mod tells the framework not to verify if the Heavy Supply Pack has been shipped before, which allows it to be spawned an infinite amount of times.

{
  "FileVersion": 1,
  "Items": [
    {
      "TemplateUUID": "a24a2ca2-a213-424c-833d-47c79934c0ce", // UUID for the Heavy Supply Pack.
      "Send": {
        "To": {
          "CampChest": { // All camp chest spawning is disabled, as I do not want the packs to spawn into them.
            "Player1Chest": false,
            "Player2Chest": false,
            "Player3Chest": false,
            "Player4Chest": false
          },
          "Host": true // Heavy Supply Packs will only spawn into the host's inventory.
        },
        "On": {
          "DayEnd": true // The supplies will spawn in as soon the ISF recognizes that there are no Heavy Supply Packs in the player's inventory, and after the player has ended the day.
        },
        "NotifyPlayer": false, // The player will not be notified when new supplies have been added to their inventory.
        "Check": {
          "ItemExistence": {
            "FrameworkCheck": false // FrameworkCheck disabled, so the Heavy Supply Packs can spawn an infinite amount of times.
          }
        }
      }
    }
  ]
}

Spawn multiple items with ISF

This example showcases how you are able to spawn in multiple items using one ISF Config JSON.

{
  "FileVersion": 1,
  "Items": [
    {
      "TemplateUUID": "6d0d3206-50b5-48ed-af92-a146ed6b98f2" // Phalar Aluve UUID
    },
    {
      "TemplateUUID": "44dedec0-df82-4ed3-b9ca-147bd830e312" // Sussur Greatsword UUID
    }
  ]
}
Clone this wiki locally