Skip to content

Commit

Permalink
Update Translate Complex Dialogue mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwuewsky committed Nov 19, 2024
1 parent 9ac7d05 commit b25155a
Show file tree
Hide file tree
Showing 7 changed files with 926 additions and 306 deletions.
33 changes: 16 additions & 17 deletions data/json/npcs/exodii/exodii_merchant_talk.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,10 @@
{
"id": "TALK_EXODII_MERCHANT_AskedRestock",
"type": "talk_topic",
"dynamic_line": [
{
"//~": "HEH, you can't get enough of old Rubik's merchandise, eh? Sure as hell, come back in <interval>.",
"str": "HEH, ye c'nnae get enough o' ol' Rubik's merchandise, eh? Sure as 'ell, come back in <interval>."
}
],
"dynamic_line": {
"//~": "HEH, you can't get enough of old Rubik's merchandise, eh? Sure as hell, come back in <interval>.",
"str": "HEH, ye c'nnae get enough o' ol' Rubik's merchandise, eh? Sure as 'ell, come back in <interval>."
},
"responses": [
{ "text": "<done_conversation_section>", "topic": "TALK_EXODII_MERCHANT_Talk" },
{ "text": "<end_talking_leave> <end_talking_bye>", "topic": "TALK_DONE" }
Expand Down Expand Up @@ -364,7 +362,7 @@
"id": "TALK_EXODII_MERCHANT_DoSomething",
"type": "talk_topic",
"dynamic_line": {
"//~": "Of course,\" the gravelly voice takes on an unmistakeable 'customer service' tone. \"What can I do for you?",
"//~": "Of course, what can I do for you?",
"str": "Sure as can,\" the gravelly voice takes on an unmistakeable 'customer service' tone. \"What'll ye tass this'n for?"
},
"responses": [
Expand Down Expand Up @@ -449,7 +447,7 @@
{
"id": "TALK_EXODII_MERCHANT_Experiment_Cyborg_Rescue_Ongoing",
"type": "talk_topic",
"dynamic_line": { "//~": "Nay, mate, still operating", "str": "Nah, mate, still operatin" },
"dynamic_line": "Nah, mate, still operatin",
"responses": [
{ "text": "<end_talking_nevermind> <done_conversation_section>", "topic": "TALK_EXODII_MERCHANT_Talk" },
{ "text": "Ok. <end_talking_bye>", "topic": "TALK_DONE" }
Expand Down Expand Up @@ -567,7 +565,7 @@
"id": "TALK_EXODII_MERCHANT_Experiment_Prototype_Cyborg_Rescue",
"type": "talk_topic",
"dynamic_line": {
"//~": "For this one I can pull out their cbm and give any working to you, or I can just take out broken bits so that they will still be able to use the rest of stuff in them. Alternatively why don't you just give them to me I surely can help them adjust to life as a cyborg.'",
"//~": "For this one I can pull out their cbm and give any working to you, or I can just take out broken bits so that they will still be able to use the rest of stuff in them. Alternatively why don't you just give them to me I surely can help them adjust to life as a cyborg.",
"str": "Fer this 'un, I can yank out their bits 'n give 'em to ya, or I can jus' take out the busted pieces so they can still use th' rest o' stuff in 'em. Elsewise, why don't ya jest give 'im to me? I reckon I can turn 'im into a right useful worker."
},
"responses": [
Expand Down Expand Up @@ -626,7 +624,7 @@
"id": "TALK_EXODII_MERCHANT_Experiment_Broken_Cyborg_Rescue",
"type": "talk_topic",
"dynamic_line": {
"//~": "This one can't be saved too much brain rotted but i can salvage bits from them or repurpose them for walker, or just cut out rot and neural interface so you can bury them proper",
"//~": "This one can't be saved, too much brain rotted. But I can salvage bits from them or repurpose them for walker, or just cut out rot and neural interface so you can bury them proper.",
"str": "This 'unwon't be twitching', too much grey lost to dead. But ye can salvage bits from 'em or born 'em for a walker, or just cut out the rot 'n grey link so ya can miss 'em proper."
},
"responses": [
Expand Down Expand Up @@ -825,7 +823,7 @@
"id": "TALK_EXODII_MERCHANT_Talk_IntroBenzete2",
"type": "talk_topic",
"dynamic_line": {
"//~": "Hmm. They… planned out the last jump? Like an apprentice to the old tracker.",
"//~": "Like an apprentice to the old tracker.",
"str": "Hmm. They… planned out the last jump? Like as an apprentice to the ol' sexten."
},
"responses": [
Expand Down Expand Up @@ -883,7 +881,7 @@
"id": "TALK_EXODII_MERCHANT_Home",
"type": "talk_topic",
"dynamic_line": {
"//~": "Ah. Home. That's a long time gone, you know? Yours isn't too different. I… don't think I want to talk about it. I've changed too much between then and now.",
"//~": "Ah. Home. That's a long time gone, you know? Yours isn't too different. I… don't think I want to talk about it. I've changed too much between then and now.\"",
"str": "*becomes distant for a moment. \"Ah. Home. It were a long time gone, kennit. Your'n be not too far. This'n… I don't think I want to talk 'bout it. Too much metal atwixt now an' then.\""
},
"responses": [
Expand Down Expand Up @@ -1081,8 +1079,8 @@
"id": "TALK_EXODII_MERCHANT_Robot_Buy",
"type": "talk_topic",
"dynamic_line": {
"//~": "I don't know about that. Each one we make is very important to our operations here, and they're extremely expensive. I might be able to sell you one later, but not right now.",
"str": "* sounds thoughtful. \"This'n can't make a call o' the quarter. The stompers be a king's necklace, and the manufactory don't run on dreams. Mayhap when us'n be more on the solid, but for the tick and tumble, no.\""
"//~": "I don't know about that. Each one we make is very important to our operations here, and they're extremely expensive. I might be able to sell you one later, but not right now.\"",
"str": "*sounds thoughtful. \"This'n can't make a call o' the quarter. The stompers be a king's necklace, and the manufactory don't run on dreams. Mayhap when us'n be more on the solid, but for the tick and tumble, no.\""
},
"speaker_effect": { "effect": { "u_add_var": "dialogue_exodii_rubik_offered_robosell", "value": "yes" } },
"//2": "In the future, Rubik should be able to sell the player a robot. This is a placeholder until that time arrives.",
Expand All @@ -1097,7 +1095,8 @@
"dynamic_line": {
"concatenate": [
{
"//~": "Yeah, we're always in need of some help around here. Here's the list I've got for stuff like this.",
"//": "mod_update_script_compact",
"//~": "Yeah, we're always in need of some help around here. Here's the list I've got for stuff like this",
"str": "*pulls out a sheaf of mismatched papers, and leafs through the pages for a second. Their broad metallic fingers look surprisingly deft and delicate, and incongruous on the otherwise unremarkable looseleaf. \"Aye, an' there's room for a pop-an-work roun' here. Rubik's got tassed a lissy, right and clean"
},
{
Expand Down Expand Up @@ -1347,7 +1346,7 @@
"id": "TALK_EXODII_MERCHANT_Scythean",
"type": "talk_topic",
"dynamic_line": {
"//~": "Ha! A new part of our crew. Signed up early on in the world we were in before. He's a really tough guy, and the node appreciates his grit. <recites some poetry>, as 'twere. I think he's pretty good as a military commander.",
"//~": "Ha! A new part of our crew. Signed up early on in the world we were in before. He's a really tough guy, and the node appreciates his grit. (recites some poetry), as 'twere. I think he's pretty good as a military commander.",
"str": "Ha! A new string and beans, an I'm ken. Latched and keyed in the bright shine o' the deadland afore this'n. He be a thing o' fire and bronze, an' the node appreciates his grit. \"A cnight of old, clade in shining steel, leading the hoste onward to glorie,\" as 'twere. This'n finds him an apt one to give rede. To command in battle, that's t'yark."
},
"responses": [
Expand Down Expand Up @@ -1399,7 +1398,7 @@
"id": "TALK_EXODII_MERCHANT_Hempen1",
"type": "talk_topic",
"dynamic_line": {
"//~": "That takes me way back. That's a bit of the old King's Landing right there, you know, calling back from when I was just little. It… ah, it's really hard for me to think about those old days. Maybe another time.",
"//~": "That takes me way back. That's a bit of the old King's Landing right there, you know, calling back from when I was just little. It… ah, it's really hard for me to think about those old days. Maybe another time.\"",
"str": "*seems to become wistful for a moment. \"Harks this'n yonder, right so. 'Tis a bit o' t'ol' King's Landing right there, kennit, yarkin' from back when Rubik were nigh smaller than a kelpie. It…\" Rubik's gravelly voice falters. \"Ah, 'tis mightily tassed to hearken back yonder. Mayhap another time."
},
"responses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"id": "TALK_EXODII_MERCHANT_Exodized2",
"type": "talk_topic",
"dynamic_line": {
"//~": "This is what you'd call a 'starter package', if I understand it. Suitable to get you s tarted, but for the really sweet parts you're going to want what I'm selling. As we get to know each other better, I'll be able to get access to even more stuff.",
"//~": "This is what you'd call a 'starter package', if I understand it. Suitable to get you started, but for the really sweet parts you're going to want what I'm selling. As we get to know each other better, I'll be able to get access to even more stuff.",
"str": "This're what ye'd razz a 'starter package', an I'm ken. Tassed to get ye started, but for the real lemony tarts you'd be wantin' what this'n's got for sale. As us'n can come to see you clairly-like, this'n can be tassed to offer more an' more."
},
"responses": [
Expand Down
30 changes: 30 additions & 0 deletions data/mods/translate-dialogue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Use `tools/json_tools/update-translate-dialogue-mod.py` to update the mod.
This update script uses up-to-date strings and `//~` comments as "translation":
```json
{
"id": "TALK_EXODII_MERCHANT_TalkJob",
"type": "talk_topic",
"dynamic_line": {
"//~": "Business before pleasure. What do you need?",
"str": "Aye, business afore, 'tis said. What'll ye tass to ol' Rubik?"
}
}
vvvvvvvvvvvvvvvvvvvvvvvvv
{
"id": "TALK_EXODII_MERCHANT_TalkJob",
"type": "talk_topic",
"dynamic_line": {
"concatenate": [
"Aye, business afore, 'tis said. What'll ye tass to ol' Rubik?",
"\"\n\n[TRANSLATE:] \"",
"Business before pleasure. What do you need?"
]
}
}
```

Usage:
* `cd path/to/Cataclysm-DDA/`
* `python3 tools/json_tools/update-translate-dialogue-mod.py`
* then lint via `json_formatter.cgi`, check `doc/JSON_STYLE.md`
* You can also add `"//": "mod_update_script_compact"` to dynamic lines to make the script concatenate that line more compactly and without newlines, which is useful if the original dialog also uses concatenation.
Loading

0 comments on commit b25155a

Please sign in to comment.