饥荒
Beefalo Info (驯牛信息)
36 条留言
Kuhrosh 4 月 7 日 上午 9:13 
Sorry max 1000 char messed the comment up. Here is an image of the code which will be a lot easier to read. https://imgur.com/gRCgHw2
Kuhrosh 4 月 7 日 上午 9:12 
-- Health
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
Kuhrosh 4 月 7 日 上午 9:12 
Here is my code..

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
Kuhrosh 4 月 7 日 上午 9:11 
Hi everyone, for those who want to add Health and Attack dmg to the info on this I fixed it but you will need to copy and paste this code into the modmain.lua file of this mod.

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
凤九歌 2 月 11 日 上午 11:37 
如何改成中文啊?我这边显示它是英文的
hyp 2024 年 10 月 26 日 下午 3:22 
mine doesnt show attack or health
八刀斷魂 2021 年 8 月 11 日 上午 12:02 
正常使用喔 2021/8/11 in ROG
回樓下1499647809 你要不改成英文版本
1499647809 2021 年 8 月 10 日 下午 7:31 
根本用不了
Lerix 2021 年 1 月 24 日 上午 7:05 
still worky? :beatmeat:
我滋你3点甲你会生气吗 2019 年 3 月 30 日 下午 10:52 
tamed满了还是会把鞍甩下来
我滋你3点甲你会生气吗 2019 年 3 月 30 日 下午 10:51 
驯服度好像没有啊 只有顺从度(Obedience)和特性值(Tendencies), 驯服度是(Domestication)
Cringe Isekai Enjoyer 2019 年 3 月 22 日 下午 1:14 
Edit: when deactivating the mod, and entering the game again, the beefalo enters the "tamed" status, then I can activate the mod again and it keep it status.
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.
Cringe Isekai Enjoyer 2019 年 3 月 22 日 下午 1:07 
It is good to know the progress, but it is messing up with the game files.
The mod bugs the beefalo. It cannot be tamed anymore, it does not get it's tendency perks (while the mod is activated).
Moriya Suwako+1S 2019 年 3 月 20 日 上午 11:08 
似乎跟调成中文有关。我调回英文之后又可以了。大佬能修复下吗?
Moriya Suwako+1S 2019 年 3 月 20 日 上午 10:56 
大佬,前两天游戏更新以后,我这里牛发情之后不生小牛了。
seungjin 2019 年 1 月 24 日 上午 3:13 
good
164793258 2019 年 1 月 23 日 上午 12:02 
ROG还更新了钢羊,翻脚印会有,但最好雇佣俩猪人,自己打的话一口粘痰就gg
Aelvys 2019 年 1 月 20 日 上午 1:49 
I really like this mod but if the mod is activated you cant brush your beefalo anymore
pls fix it :/
Jack_stars 2019 年 1 月 19 日 下午 7:30 
来个舐盐器就完美了:steamsad:
我很厉害 2019 年 1 月 19 日 下午 12:55 
没有舔盐器吗?
Яна Zбол 2019 年 1 月 19 日 上午 3:34 
avehortor, now they can be tamed
blake 2019 年 1 月 18 日 下午 9:06 
boof
AveHortor 2019 年 1 月 18 日 下午 6:04 
Beefalo can be tamed in singleplayer DS?
HandlerOne 2019 年 1 月 18 日 上午 6:53 
kou哥果然神速
晨星 2019 年 1 月 18 日 上午 6:38 
带汉化吗?
会笑的面具 2019 年 1 月 18 日 上午 3:25 
支持
黄瓜 2019 年 1 月 18 日 上午 1:14 
hao
August101 2019 年 1 月 17 日 下午 9:06 
lol
elias.schwaiger 2019 年 1 月 17 日 上午 11:30 
uiii :steamhappy:
Karas 2019 年 1 月 17 日 上午 3:35 
火钳刘明
一起去爬山吗 2019 年 1 月 16 日 下午 7:11 
活捉kou哥
AP_ShiZhe 2019 年 1 月 16 日 上午 6:08 
:bbtcat:
杨过 2019 年 1 月 16 日 上午 5:22 
前排沙发
那一抹、思绪 2019 年 1 月 16 日 上午 4:10 
66666666666666,火钳留名!!!!!
红烧你的头 2019 年 1 月 16 日 上午 2:46 
捕捉xiaokou!!
xiaokou 2019 年 1 月 16 日 上午 1:57 
抢占前排,支持支持!!!