SODRelationsPlus

版本 v1.0.3·更新於 2026-02-01

A standalone common library that provides functionality to retrieve and edit relational information between citizens and the player.

模組介紹 作者原文

SOD.RelationsPlus

RelationsPlus is a standalone common library that provides functionality to retrieve and edit relational information between citizens and the player.

The relational information is automatically saved by the library seperately for each savegame.

This mod serves as a stepping stone for other mods, and does not directly influence the game in anyway by itself.

The relational information is tracked in two ways:

  • Citizens seeing the player in various locations and statuses
  • Citizens directly interacting with the player

Features

  • Tracks how often the citizens see the player in various locations
  • Tracks how much the citizens know the player
  • Tracks how much the citizens like the player
  • A natural decay so that the citizens forget about the player overtime if not interacted or seen.
  • Well documented methods

Usage

The library uses a singleton object that controls the relations for each citizen.

You can access this by the following property: "RelationManager.Instance"

To retrieve the relation of a given citizen you can do it in two ways:

// This will create a new relational object if none exists

var relation = RelationManager.Instance[citizenId];

// Will do a check if it exists, and outs the relation object (null if none exists)

var exists = RelationManager.Instance.TryGetValue(citizenId, out var relation));

A relation object is automatically created and stored the first time a citizen sees the player or comes in contact with them.

Both the RelationManager and the Relation object have events you can hook to execute your custom code.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

Venomaus-SODCommon

檔案與校驗

檔案名稱
SODRelationsPlus-1.0.3.zip
檔案大小
157.1 KiB