Skip to content

Commit 2d116c1

Browse files
committed
add dialogue to becky interaction script
1 parent 94eb7ba commit 2d116c1

File tree

4 files changed

+47
-19
lines changed

4 files changed

+47
-19
lines changed

pets-gd/classes/dbox.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ func say_as_with_choices(speaker, msgs, dchoices, do_open = true, do_close = tru
2222
if do_close:
2323
close()
2424

25+
# TODO: bruh wtf are you doing, `value` is locale-dependant
2526
return { "index": index, "value": dchoices[index] if dchoices.size() > 0 else null }
2627

2728
func say_as(speaker, msgs, do_open = true, do_close = true):
29+
# allow passing a single string without brackets around it
30+
if typeof(msgs) == TYPE_STRING:
31+
msgs = [msgs]
32+
2833
await say_as_with_choices(speaker, msgs, [], do_open, do_close)
2934

3035
func say(msgs):

pets-gd/dialogue/becky_intro.gd

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
extends DialogueScript
22

33
func _start() -> void:
4-
await dbox().say_as("[LYEMBO]", [
5-
"Hey...?",
6-
"I don't know what to say.",
7-
"My name is L'yembo. Maybe we'll meet again someday.",
4+
# TODO: if player has not yet gone to school to earn the scrapbook
5+
# pretend like she's busy and doesn't notice you walking by
6+
7+
await dbox().say_as("DG_SPK_UNKNOWN", "DG_BECKY_INTRO_HI")
8+
9+
var picked = await dbox().say_as_with_choices("DG_SPK_BECKY", [
10+
"DG_BECKY_INTRO_HOSTILES",
11+
"DG_BECKY_INTRO_DONT_WORRY",
12+
"DG_BECKY_INTRO_STUDY",
13+
"DG_BECKY_INTRO_HELP",
14+
"DG_BECKY_INTRO_LOGGING",
15+
"DG_BECKY_INTRO_OTHER_ENEMIES",
16+
"DG_BECKY_INTRO_MILESTONES",
17+
"DG_BECKY_INTRO_OFFER",
18+
], [
19+
"DG_BECKY_INTRO_ACCEPT",
20+
"DG_BECKY_INTRO_DECLINE",
821
])
922

10-
var lyembo = get_parent().get_parent()
11-
lyembo.move_to_relative(-100.0, 0.0)
12-
await lyembo.pchar_motion_done
23+
var accepted_book = picked["index"] == 0
24+
25+
if not accepted_book:
26+
await dbox().say_as("DG_SPK_BECKY", "DG_BECKY_INTRO_OH_WELL")
27+
return
28+
29+
await dbox().say_as("DG_SPK_BECKY", "DG_BECKY_INTRO_GREAT_HERES_YOUR")
30+
31+
# TODO: the user accepted the logbook, so grant access to it and pop up
32+
# a message saying that Becky's log has been added to the scrapbook

pets-gd/dialogue/debug.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func _start() -> void:
6262

6363
await dbox().say_as("[CASCADE]", [
6464
"Welcome to the team" +
65-
(", ... me!" if picked["value"] == "MIRA" else "!")
65+
(", ... me!" if picked["value"] == "Mira" else "!")
6666
])
6767

6868

pets-gd/i18n/translations.csv

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ ENEMY_U_RumbleSerpent,Rumble's Mechanical Monstrosity,Rumble's Steel Kraken,Rumb
310310
DG_SPK_UNKNOWN,???,???,???
311311
DG_SPK_RODRICK,"Rodrick Sign Co.","Rodrick Sign Co.","Your Mom!!!!!!!! (real)"
312312
DG_SPK_CASCADE,Agent Cascade,Purple Gal,Cascade
313+
DG_SPK_BECKY,Becky,Becky,Becky
313314
DG_SPK_MOM,Mom,Mom,Mom
314315
DG_SPK_DAD,Dad,Pops,Dad
315316
DG_SPK_JUNIPER,Juniper,Lady Juniper,Juniper
@@ -347,14 +348,16 @@ DG_INTRO1_MEET_NEIGHBORS,"Here he is! Hey, [ETHAN], come meet the neighbors!","T
347348
DG_INTRO1_MR_T,"This is Mr. Tulivae. He lives next door.","This be Cap'n Tulivae. He lives next door.","This is Mr. Tulivae. He lives next door."
348349
DG_INTRO1_HI_THERE,"Hi there, [ETHAN]. Pleasure meeting you.","Ahoy, [ETHAN]. Pleasure meetin' ya.","Hi there, [ETHAN]. Pleasure meeting you."
349350
DG_INTRO1_HE_SEEMS_NICE,He seems pretty nice. Maybe you should go say hi later.,He seems pretty nice. Maybe ye should go say hi later.,He seems pretty nice... but does he pay his taxes?
350-
DG_BECKY_MEET_HI,"Hey, there! I'm Secky the Bec-- I mean, Becky the Secretarybird!","Ahoy! I'm Secky th' Bec-- Errrr, Becky th' Secretarybird!","Hey, there! I'm Secky the Bec-- I mean, Becky the Secretarybird!"
351-
DG_BECKY_MEET_HOSTILES,"You may have noticed there are a certain class of hostile birds around this area.","Ye may have noticed there be a certain class o' dragons 'round these seas.","You may have noticed some spicy birbs around this area."
352-
DG_BECKY_MEET_DONT_WORRY,"Don't worry; I'm not one of them.","Don't ye worry yer lil' head; I be nah one o' those bilge rats.","Don't worry; I'm not one of them."
353-
DG_BECKY_MEET_STUDY,"I'm running a study on what may be causing this sudden outbreak.","I be runnin' a survey on th' lands, findin' out what may be causin' this sudden storm.","I'm running a study on what may be causing this sudden outbreak."
354-
DG_BECKY_MEET_HELP,"Would you mind helping me discover more species of this diverse population?","Would ye mind helpin' me discover more squawkers o' this diverse population?","Would you mind helping me discover more species of this diverse population?"
355-
DG_BECKY_MEET_LOGGING,"I need you to log the species you encounter in your travels.","I need ye to log th' squawkers ye encounter in yer travels.","I need you to log the species you encounter in your travels."
356-
DG_BECKY_MEET_OTHER_ENEMIES,"Feel free to log other oddities you encounter as well. It'll be your own logbook, after all.", "Feel free to log other oddities ye encounter as well. It'll be yer own logbook, after all.","Feel free to log other oddities you encounter as well. It'll be your own logbook, after all."
357-
DG_BECKY_MEET_MILESTONES,"I'll even give you a little something for each milestone you hit.","I'll even give ye a lil' treasure fer each milestone ye hit.","What? Yeah, there will be rewards, too, I guess."
358-
DG_BECKY_MEET_OFFER,"So, what do you say?","So, whadda ye say?","So...?"
359-
DG_BECKY_MEET_ACCEPT,"Sure!","Aye!","Sure!"
360-
DG_BECKY_MEET_DECLINE,"I'm busy.","Nay, matey.","Nah."
351+
DG_BECKY_INTRO_HI,"Hey, there! I'm Secky the Bec-- I mean, Becky the Secretarybird!","Ahoy! I'm Secky th' Bec-- Errrr, Becky th' Secretarybird!","Hey, there! I'm Secky the Bec-- I mean, Becky the Secretarybird!"
352+
DG_BECKY_INTRO_HOSTILES,"You may have noticed there are a certain class of hostile birds around this area.","Ye may have noticed there be a certain class o' dragons 'round these seas.","You may have noticed some spicy birbs around this area."
353+
DG_BECKY_INTRO_DONT_WORRY,"Don't worry; I'm not one of them.","Don't ye worry yer lil' head; I be nah one o' those bilge rats.","Don't worry; I'm not one of them."
354+
DG_BECKY_INTRO_STUDY,"I'm running a study on what may be causing this sudden outbreak.","I be runnin' a survey on th' lands, findin' out what may be causin' this sudden storm.","I'm running a study on what may be causing this sudden outbreak."
355+
DG_BECKY_INTRO_HELP,"Would you mind helping me discover more species of this diverse population?","Would ye mind helpin' me discover more squawkers o' this diverse population?","Would you mind helping me discover more species of this diverse population?"
356+
DG_BECKY_INTRO_LOGGING,"I need you to log the species you encounter in your travels in this logbook.","I need ye to log th' squawkers ye encounter in yer travels in me logbook.","I need you to log the species you encounter in your travels in this logbook."
357+
DG_BECKY_INTRO_OTHER_ENEMIES,"Feel free to log other oddities you encounter as well. It'll be your own logbook, after all.", "Feel free to log other oddities ye encounter as well. It'll be yer own logbook, after all.","Feel free to log other oddities you encounter as well. It'll be your own logbook, after all."
358+
DG_BECKY_INTRO_MILESTONES,"I'll even give you a little something for each milestone you hit.","I'll even give ye a lil' treasure fer each milestone ye hit.","What? Yeah, there will be rewards, too, I guess."
359+
DG_BECKY_INTRO_OFFER,"So, what do you say?","So, whadda ye say?","So...?"
360+
DG_BECKY_INTRO_ACCEPT,"Sure!","Aye!","Sure!"
361+
DG_BECKY_INTRO_DECLINE,"I'm busy.","Nay, matey.","Nah."
362+
DG_BECKY_INTRO_GREAT_HERES_YOUR,"Great! Here's your logbook, then.","Aye, I knew you'd be up for adventure.","Think fast!"
363+
DG_BECKY_INTRO_OH_WELL,"Oh... Well, that's alright. You know where to find me if you ever change your mind!","Yarrrgh. If y'ever turn yer ship around, I'll still be waitin' for ya here, matey. No worries.","Lazy bones... LMAO"

0 commit comments

Comments
 (0)