Starbound

Starbound

[Crew Patches] "dialogMode":"random"
8 Comments
AnomNom 28 Mar, 2022 @ 8:36pm 
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 24 Jul, 2021 @ 10:02am 
Does It work whith other npc?
Bodoc Calado 21 Jun, 2021 @ 2:48pm 
That clarifies it, thank you! +subbed
Z'uldiss  [author] 18 Jun, 2021 @ 12:16pm 
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 17 Jun, 2021 @ 1:36pm 
What do you mean, say their lines in random order? Will they say "I'll stay here." when you order them to follow?
skelazia 16 Mar, 2021 @ 7:06pm 
cool
Lami. 12 Mar, 2021 @ 9:13am 
Noice
Lukiwarble 11 Mar, 2021 @ 9:11am 
interesting