Skill Upgrades Tree
Library mod for adding skill upgrades to skills that can be selected in lobby. Comes with own skill upgrades if there are no other skill upgrades
截圖 共 1 張
模組介紹 作者原文
How to use (For modders)
Adding Skill Upgrades
SkillUpgradesTreeDef
- Create SkillUpgradesTreeDef ScriptableObject
- Fill SkillUpgradesTreeDef List> skillsToApply list with R2API.AddressReferencedAssets.AddressReferencedAsset to which skills add skill upgrades to. Please keep skills within the same SkillFamily
- Fill SkillUpgradesTreeDef List skills with SkillUpgrade
- Run Register method to register this skill upgrades tree
SkillUpgrade
- Create SkillUpgrade class
- Fill SkillUpgrade string id with your string identificator. MUST BE UNIQUE!!!
- Fill SkillUpgrade string nameToken with your name language token
- Fill SkillUpgrade string descriptionToken with your description language token
- Fill SkillUpgrade string loreToken with your lore language token
- Fill Sprite icon with your icon Sprite
- Fill List mutuallyExclusiveWith with SkillUpgrade.id that cannot be selected together. SkillUpgrade you included here will also have your SkillUpgrade as mutually exclusive
- Fill int selectiveUpgradesRequired with how much Selective RequiredUpgrade required to select this skill
- Fill List requiredUpgrades with required skill upgrades needed to be selected first
RequiredUpgrade
- Create RequiredUpgrade struct
- Fill string requiredSkillId with SkillUpgrade.id that is needed to be selected
- Fill RequiredUpgradeCondition condition either with Required if required skill needs to be selected or Selective if you want to make either of Selective required upgrades needed to be selected to satisfy selection condition
How it looks
Getting Skill Upgrades
- To get if the player has selected the skill upgrade run SkillUpgradesTreeApi.GetSkillUpgradeSelected(this SkillLocator skillLocator, string upgradeId) or SkillUpgradesTreeApi.GetSkillUpgradeSelected(this SkillLocator skillLocator, SkillUpgradeIndex skillUpgradeIndex)
Examples
- Mod has SkillUpgradesTreeDef TestDef in SkillUpgradesTreeApi that gets registered if there are zero SkillUpgradesTreeDef registered
- Functionality of the upgrades in the SkillUpgradesTreeDef TestDef are located in TestClass
How to use (For players)
- Select the skill that has skill upgrades and there will be a new menu to select skill upgrades. You cannot miss it
- Move skill upgrades screen with WASD on keyboard or right thumbstick on controller
- Close skill upgrades menu by selecting skill that doesn't have skill upgrades
- On controllers navigate through the menu using DPAD or left thumbstick. To navigate back to skill selection menu press left until you navigate back
TODO:
- Improve skill upgrades selection menu
- Add UnlockableDef unlock requirement to SkillUpgrade
- Add ability for director to spawn monsters with selected upgrades if possible
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
RiskofThunder-HookGenPatcherRiskofThunder-R2API_Addressables