此模组允许为《星露谷物语》的电视添加频道。想制作内容包的话,可下载可选文件中的示例内容包。
内容包清单示例
{
"Name": "Your Mod Name",
"Author": "Your Name",
"Version": "1.0.0",
"Description": "One or two sentences about the mod.",
"UniqueID": "YourName.YourModName",
"UpdateKeys": [],
"ContentPackFor": {
"UniqueID": "chieeri323.customtvchannel"
}
}
content.json 示例
{
"channelInfos": [
{
"Channelkey": "testchannel2",
"ChannelName": "xxx channel",
"ChannelDescription": "Welcome to xxx TV channel",
"ShowDays": "Mon",
"ChannelType": {
"currentChannel": 10,
"ScreenFile": "assets/Mod_Namescreen.png",
"animation": {
"AnimationInterval": 150,
"AnimationLength": 2
},
"ad": {
"RandomQuestion": {
"10101": {"ADPrice": 9999, "ItemID": ["(O)373"], "QuestionText": "Do you want to buy A pumpkin? Only<>G!"},
"2233": {"ADPrice": 9999, "ItemID": ["(O)373"], "QuestionText": "Do you want to buy A pumpkin? Only<>G"}
},
"Select1": "Yeeeees!",
"Select2": "NO."
}
}
}
]
}
提示
- 所有频道每两年重播一次。在
Tips和Question字段中,1 到 8 代表一年中的日期;《星露谷物语》每年有 112 天。 - 如果没有设置
ScreenFile和动画,将使用默认图像。
可用字段
ChannelName:观看电视时显示的频道名称。ChannelDescription:选择电视频道时显示的对话内容。ShowDays:游戏中每周频道的播出日期。ChannelType.currentChannel:必填。不能使用 2、3、4、5、6、666 或 9999。为避免与其他内容包冲突,建议使用数字前缀,例如 2427801、2427802。ChannelType.ScreenFile:频道有动画时,填写图像的相对路径。ChannelType.animation:设置动画长度和间隔。ChannelType.normal:普通电视频道类型。ChannelType.normal.Tips:选择频道后显示的内容;键为游戏日期,最大值 224,值为显示文本。ChannelType.ad:广告电视频道类型。ChannelType.ad.Question:选择频道后显示的问题对话框;键为游戏日期,最大值 224,因为内容每两年重播。ChannelType.ad.RandomQuestion:代替Question使用时,会从随机字典中选择频道播出日期对应的问题。Select1、Select2:问题对话框中两个选项的显示名称。
后续计划
- 添加新的频道类型,并允许玩家获得新食谱。
- 添加新的频道类型,让玩家通过电视接取任务。
屏幕图像尺寸为 42×28 像素。绘制三帧动画时,图像宽度需要是单帧的三倍。
前置
需要 SMAPI - Stardew Modding API。
更新说明
版本文件说明:修复使用 RandomQuestion 时玩家可以重复购买物品的问题。作者说明此前遗漏了条件判断。
原说明注明为机器翻译,作者表示自己不太懂英语。
来源与文件
- 原作者:chieeri323
- 原项目:Custom TV Channel
- 文件:CTC 1.11 -FIX-(ID:100168)
- 来源上传者:shghc03
文件说明
Fixed an issue where a player could purchase items repeatedly when using RandomQuestion(I forgot to write the conditional. haha...)
来源列出的依赖与关系
- 作者列出的前置:SMAPI - Stardew Modding API
前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。
<!-- aoe-mods-source:nexusmods:stardewvalley:24278 -->
下载模块
共 1 个来源立即下载推荐来源
