Don't Starve Together

Don't Starve Together

[Forge] Item Ability Cooldown Timer + Announcement (Fixed)
 Este tópico foi afixado, portanto deve ser importante
Leon  [developer] 28 mar. 2021 às 6:53
Persistent Custom Quotes
If You Don't Want To Re-import Your Custom Quotes Every Time The Mod Updates And Adhere To Better String Management.

You Can Modify The Strings Externally By Using:
GLOBAL.STRINGS._FORGECDCUSTOMQUOTES.*tab*
Where *tab* Is The Table You're Modifying, Put These In modmain.lua Of Your Personal Mod, eg:
GLOBAL.STRINGS._FORGECDCUSTOMQUOTES.Player_UnderMouse.Greeting = {"Hey, you, {MOUSE}. You're finally awake. You were trying to cross the border, right?"}
Template Code:
This Goes In modinfo.lua
name = "Custom Stuff" author = "You" version = "Idk 0?" description = "WARNING! THIS IS ONLY A TEMPLATE!\n[Version: " ..version.. "]" api_version = 10 priority = -1 dst_compatible = true gorge_compatible = true forge_compatible = true client_only_mod = true
This Goes In modmain.lua
GLOBAL.STRINGS._FORGECDCUSTOMQUOTES.Player_UnderMouse.Greeting = {"Bonjour {MOUSE}!"} GLOBAL.STRINGS._FORGECDCUSTOMQUOTES.CD_IsOnCD = {"La capacité de mon {ITEM} sera prête dans {CDTIME} secondes"} -- You Can Also Do This For Other Mods, eg: Status Announcements. GLOBAL.STRINGS._STATUS_ANNOUNCEMENTS.WEBBER.HEALTH = { FULL = "We Are Invincible!", HIGH = "We're Slightly Wounded.", MID = "We Can Get Through This. I'm Sure...", LOW = "I'm Not Afraid Of Death!", EMPTY = "Abandon All Hope...", }
I'm Basically Telling You To Make Your Own Mod.
Última alteração por Leon; 28 mar. 2021 às 9:29
< >
A mostrar 1-3 de 3 comentários
Salivige 21 abr. 2021 às 4:05 
Author please ignore :)
关于个性化宣告:
打开文件夹Steam\steamapps\workshop\content\322330\2179516140\languages
这个路径作者有放出在上面
根据你在这个mod中选择的语言,选择并打开如:
chinese_s.Lua


RandomLenny = { }, 随机表情库
使用方法:宣告文本里加入{LENNY}如:
"我的{ITEM}将会在{CDTIME}秒后冷却完毕{LENNY}",




以下是Alt+Shift+X+左键 我的宣告按键是X。貌似仅仅Alt+X+左键 也可
CD_IsOnCD = { }, 默认武器冷却中

CD_Ready = { }, 默认武器无冷却

DefaultPetHealthBadge ={ }, 默认宠物健康

AbbyHealthBadge = { }, 猛击阿比盖尔血条

BernieHealthBadge = { }, 猛击伯尼血条



以下除个例是Shift+X都是X,且目标必须可检查
Entity_UnderMouse = { }, X目标是建筑

Item_UnderMouse = { }, X目标是地上物品

Myself_UnderMouse =
{
Examine = { }, X目标是自己且存活
IsDead = { }, X目标是自己且死亡
},

Player_UnderMouse =
{
Health = { }, Shift+X目标是队友玩家血量
Greeting = { }, X目标是队友打招呼
IsDead = { }, X目标是队友且死亡
RequestRevive = { }, X目标是队友且自己已死亡
},

Hostile_UnderMouse = { }, X目标是小怪与旗子

Friendly_UnderMouse = { }, X目标是小跟班(蜘蛛宝宝或阿比盖尔本体之类的)

Bosses_UnderMouse = { }, X目标是大猩猩以及各boss

Reserved_UnderMouse = { }, X目标是队友,熟人好友之间开玩笑
KU值获取:Users\你电脑用户名\Documents\Klei\DoNotStarveTogether\client_chat_log.txt

之后是武器单独宣告文本,看着改吧:)
Última alteração por Salivige; 19 mai. 2021 às 9:26
千与千与千  [developer] 21 abr. 2021 às 12:07 
Originalmente postado por Linsar:
Author please ignore :)
关于个性化宣告:
打开文件夹Steam\steamapps\workshop\content\322330\2179516140\languages
这个路径作者有放出在上面
根据你在这个mod中选择的语言,选择并打开如:
chinese_s.Lua


RandomLenny = { }, 随机表情库
使用方法:宣告文本里加入{LENNY}如:
"我的{ITEM}将会在{CDTIME}秒后冷却完毕{LENNY}",




以下是Alt+Shift+X+左键 我的宣告按键是X。貌似仅仅Alt+X+左键 也可
CD_IsOnCD = { }, 默认武器冷却中

CD_Ready = { }, 默认武器无冷却

DefaultPetHealthBadge ={ }, 默认宠物健康

AbbyHealthBadge = { }, 猛击阿比盖尔血条

BernieHealthBadge = { }, 猛击伯尼血条



以下除个例是Shift+X都是X,且目标必须可检查
Entity_UnderMouse = { }, X目标是建筑

Item_UnderMouse = { }, X目标是地上物品

Myself_UnderMouse =
{
Examine = { }, X目标是自己且存活
IsDead = { }, X目标是自己且死亡
},

Player_UnderMouse =
{
Health = { }, Shift+X目标是队友玩家血量
Greeting = { }, X目标是队友打招呼
IsDead = { }, X目标是队友且死亡
RequestRevive = { }, X目标是队友且自己已死亡
},

Hostile_UnderMouse = { }, X目标是小怪与旗子

Friendly_UnderMouse = { }, X目标是小跟班(蜘蛛宝宝或阿比盖尔本体之类的)

Bosses_UnderMouse = { }, X目标是大猩猩以及各boss

Reserved_UnderMouse = { }, X目标是队友,熟人好友之间开玩笑
KU值获取:Users\你电脑用户名\Documents\Klei\DoNotStarveTogether\client_chat_log.txt

之后是武器单独宣告文本,看着改吧:)



补充一个被遗忘的中文翻译:<
_UTIL =
{
Enabled = "[启用]",
Disabled = "[关闭]",
InstantSpecial = {
Flair = "[快捷施法]",
Format_Enabled = "模式: {OPTION}",

Format_Disabled = "快捷施法已关闭。",

Options = {
"右键施法",
"双击右键施法,单击左键取消",
"松开右键施法,单击左键取消。",
},
},
GetArticle = function(str) return "" end,
},
鸽子翻译之前把这部分忘了,前几天把翻译补充了,应该下次更新就会齐全-w-
Salivige 21 abr. 2021 às 22:04 
Originalmente postado por Memorysalt:

鸽子翻译之前把这部分忘了,前几天把翻译补充了,应该下次更新就会齐全-w-
大大辛苦啦,等更新后我会重新编辑这条讨论:)
Última alteração por Salivige; 21 abr. 2021 às 22:05
< >
A mostrar 1-3 de 3 comentários
Por página: 1530 50