安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






if inst.components.health then
local current_health = inst.components.health.currenthealth
local max_health = inst.components.health.maxhealth
str = str .. "\n Health: " .. round2(current_health, 0) .. "/" .. round2(max_health, 0)
end
-- Attack
if inst.components.combat then
local attack_damage = inst.components.combat.defaultdamage
str = str .. "\n Attack: " .. round2(attack_damage, 0) .. "\n "
end
end
if inst.components.domesticatable ~= nil and inst.components.domesticatable.domestication > 0 and inst.prefab == "beefalo" then
-- Hunger
if inst.components.hunger then
local val = inst.components.hunger:GetPercent()
str = str .. "\n " .. label.hunger .. ": " .. round2(inst.components.hunger.current, 0)
end
-- Obedience
if inst.components.domesticatable.GetObedience ~= nil then
local obedience = inst.components.domesticatable:GetObedience()
str = str .. " / ".. label.obedience .. ": " .. round2(obedience * 100, 0) .. "%"
end
-- Tamed
if inst.components.domesticatable.GetDomestication ~= nil then
local domest = inst.components.domesticatable:GetDomestication()
str = str .. " / " .. label.tamed .. ": " .. round2(domest * 100, 0) .. "%"
end
Find the files for DS like this.. right-click on DS in steam > manage > browse local files
Once you find the the file modmain.lua open it (I did so in VSCode) and in the function showInfo replace the if statement with hunger, obedience, and tamed with my code. That is line 55 -> 72
You can see below Health and Attack is added. And at the end of attack .. "\n " this just add white space under it so it isn't all jammed together.
Hope this helps. :) Here is an image of my character after I confirmed it worked. https://imgur.com/a/FVtFdoe
回樓下1499647809 你要不改成英文版本
Maybe you want to add an event trigger for your mod to so that it "restart" itself automatically once a beefalo reaches 100% (or 0%) tamed status.
The mod bugs the beefalo. It cannot be tamed anymore, it does not get it's tendency perks (while the mod is activated).
pls fix it :/