Starbound

Starbound

90 个评价
[Crew Patches] "dialogMode":"random"
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
95.992 KB
2021 年 3 月 10 日 下午 1:56
2021 年 3 月 29 日 下午 7:04
3 项改动说明 ( 查看 )

订阅以下载
[Crew Patches] "dialogMode":"random"

在 Z'uldiss 的 2 个合集中
Thunderspy Mod Collection
106 件物品
Z'uldiss's personal collection
114 件物品
描述
Wasn't expecting "random" to work. Happy surprise.

If you, like me, find your crew a bit lacking in vocabulary, always using the same follow/unfollow messages, this little mod fixes that by patching the base crew npctype files, with this bit of information:

[
{
"op": "add",
"path": "/scriptConfig/dialogMode",
"value": "random"
}
]

When a crewmember respawns, is ordered to stop following, starts following, or they just can't reach you, they'll now pick a random line from their race's related message group ("respawned", "unfollow", "follow", "cantreach"), which should make things a bit more interesting.

This is a patch for "crewmember.npctype", "fu_crewmember.npctype", or "catcrewmember.npctype", and thus affects every crewmember type that uses one of these files as a base. If other base crew npctype files are brought to my attention, I'll add them in.


Thanks to Zarra from the frackinuniverse Discord chat for pointing out the correct path.
8 条留言
AnomNom 2022 年 3 月 28 日 下午 8:36 
Fun fact I learned following some investigation into the dialogue script I was doing for my own mod; specifying the value as "random" is not actually required! Interestingly, as long as the string is not nil (which, as far as I can tell, means you give the dialogue mode a value, but it doesn't really matter what), it will randomize, because the script uses an else statement at the end.

In short, if you patched the dialogueMode to have the value of "urmom" instead of "random," it would still randomize. It only does not randomize if the string is nil, or if the values are either "static" or "sequence." I thought that was pretty interesting.
Obsidian_mantis 2021 年 7 月 24 日 上午 10:02 
Does It work whith other npc?
Bodoc Calado 2021 年 6 月 21 日 下午 2:48 
That clarifies it, thank you! +subbed
Z'uldiss  [作者] 2021 年 6 月 18 日 下午 12:16 
They'll say their lines in random order, within the related groups.

Say your crewmember's a human. By default, there's no "dialogMode" entry in crewmember.npctype, so every time they're made to stop following, they'll pick only one line from the default part of the "unfollow" section in that file and use it every single time:

"I'll just wait here.",
"I'll stay here. Come back when you need me, captain!",
"I'll stay here for now, captain.",
"Do you need me to stay here?",
"I'll stay here for now, then.",
"I'll stay here."

Adding "dialogMode":"random" to crewmember.npctype makes every type that uses this file as a base instead pick a random line from that lot when told to stay put.

The "follow" lines of course will still only be said when you get them to follow you, don't worry. If it didn't work like that, I'd never have put this up.
Bodoc Calado 2021 年 6 月 17 日 下午 1:36 
What do you mean, say their lines in random order? Will they say "I'll stay here." when you order them to follow?
skelazia 2021 年 3 月 16 日 下午 7:06 
cool
Lami. 2021 年 3 月 12 日 上午 9:13 
Noice
Lukiwarble 2021 年 3 月 11 日 上午 9:11 
interesting