1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
|
/*
* File: z_en_pst.c
* Overlay: ovl_En_Pst
* Description: Postbox
*/
#include "z_en_pst.h"
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED)
void EnPst_Init(Actor* thisx, PlayState* play);
void EnPst_Destroy(Actor* thisx, PlayState* play);
void EnPst_Update(Actor* thisx, PlayState* play);
void EnPst_Draw(Actor* thisx, PlayState* play);
void EnPst_Talk(EnPst* this, PlayState* play);
typedef enum {
/* 0 */ POSTBOX_SCH_NONE,
/* 1 */ POSTBOX_SCH_AVAILABLE,
/* 2 */ POSTBOX_SCH_CHECKED_BY_POSTMAN
} PostboxScheduleResult;
typedef enum {
/* 0 */ POSTBOX_BEHAVIOUR_WAIT_FOR_ITEM,
/* 1 */ POSTBOX_BEHAVIOUR_TAKE_ITEM
} PostboxBehaviour;
#include "src/overlays/actors/ovl_En_Pst/scheduleScripts.schl.inc"
MsgScript D_80B2C23C[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2784),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x00FF),
/* 0x0007 0x07 */ MSCRIPT_CMD_CHECK_CALLBACK_MULTI(0x0, 0x003F - 0x000E, 0x0047 - 0x000E),
/* 0x000E 0x03 */ MSCRIPT_CMD_CHECK_CALLBACK_CONTINUE(0x001B - 0x0011),
/* 0x0011 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0012 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0019 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001A 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x001B 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x001C 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x001F 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0020 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0023 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0024 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_UPPER_CLOCKTOWN),
/* 0x0027 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x002A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_27_40, 0x0037 - 0x002F),
/* 0x002F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0032 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0035 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0036 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0037 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x003A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x003D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x003E 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x003F 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0040 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0043 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0044 0x03 */ MSCRIPT_CMD_JUMP_3(0x0019 - 0x0047),
/* 0x0047 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2786),
/* 0x004A 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x004B 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C288[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2784),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x00FF),
/* 0x0007 0x07 */ MSCRIPT_CMD_CHECK_CALLBACK_MULTI(0x0, 0x003F - 0x000E, 0x0047 - 0x000E),
/* 0x000E 0x03 */ MSCRIPT_CMD_CHECK_CALLBACK_CONTINUE(0x001B - 0x0011),
/* 0x0011 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0012 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0019 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001A 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x001B 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x001C 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x001F 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0020 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0023 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0024 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_NORTH_CLOCKTOWN),
/* 0x0027 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x002A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_27_80, 0x0037 - 0x002F),
/* 0x002F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0032 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0035 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0036 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0037 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x003A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x003D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x003E 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x003F 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0040 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0043 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0044 0x03 */ MSCRIPT_CMD_JUMP_3(0x0019 - 0x0047),
/* 0x0047 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2786),
/* 0x004A 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x004B 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C2D4[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2784),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x00FF),
/* 0x0007 0x07 */ MSCRIPT_CMD_CHECK_CALLBACK_MULTI(0x0, 0x003F - 0x000E, 0x0047 - 0x000E),
/* 0x000E 0x03 */ MSCRIPT_CMD_CHECK_CALLBACK_CONTINUE(0x001B - 0x0011),
/* 0x0011 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0012 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0019 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001A 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x001B 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x001C 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x001F 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0020 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0023 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0024 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_UPPER_CLOCKTOWN),
/* 0x0027 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x002A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_01, 0x0037 - 0x002F),
/* 0x002F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0032 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0035 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0036 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0037 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x003A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x003D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x003E 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x003F 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0040 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0043 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0044 0x03 */ MSCRIPT_CMD_JUMP_3(0x0019 - 0x0047),
/* 0x0047 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2786),
/* 0x004A 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x004B 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C320[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2784),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x00FF),
/* 0x0007 0x07 */ MSCRIPT_CMD_CHECK_CALLBACK_MULTI(0x0, 0x003F - 0x000E, 0x0047 - 0x000E),
/* 0x000E 0x03 */ MSCRIPT_CMD_CHECK_CALLBACK_CONTINUE(0x001B - 0x0011),
/* 0x0011 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0012 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0019 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001A 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x001B 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x001C 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x001F 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0020 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0023 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0024 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_LOWER_CLOCKTOWN),
/* 0x0027 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x002A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_02, 0x0037 - 0x002F),
/* 0x002F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0032 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0035 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0036 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0037 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x003A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x003D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x003E 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x003F 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0040 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0043 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0044 0x03 */ MSCRIPT_CMD_JUMP_3(0x0019 - 0x0047),
/* 0x0047 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2786),
/* 0x004A 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x004B 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C36C[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2784),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x00FF),
/* 0x0007 0x07 */ MSCRIPT_CMD_CHECK_CALLBACK_MULTI(0x0, 0x003F - 0x000E, 0x0047 - 0x000E),
/* 0x000E 0x03 */ MSCRIPT_CMD_CHECK_CALLBACK_CONTINUE(0x001B - 0x0011),
/* 0x0011 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0012 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0019 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001A 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x001B 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x001C 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x001F 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0020 0x03 */ MSCRIPT_CMD_JUMP_3(0x0),
/* 0x0023 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0024 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_LOWER_CLOCKTOWN),
/* 0x0027 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x002A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_04, 0x0037 - 0x002F),
/* 0x002F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0032 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0035 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0036 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0037 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x003A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x003D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x003E 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x003F 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0040 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0043 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0044 0x03 */ MSCRIPT_CMD_JUMP_3(0x0019 - 0x0047),
/* 0x0047 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x2786),
/* 0x004A 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x004B 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C3B8[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x27A1),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x27A2),
/* 0x0007 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0008 0x01 */ MSCRIPT_CMD_CLOSE_TEXT(),
/* 0x0009 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_81_08, 0x001D - 0x000E),
/* 0x000E 0x05 */ MSCRIPT_CMD_OFFER_ITEM(GI_HEART_PIECE, 0x0),
/* 0x0013 0x03 */ MSCRIPT_CMD_SET_COLLECTIBLE(0x000C),
/* 0x0016 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0017 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_81_08),
/* 0x001A 0x03 */ MSCRIPT_CMD_AUTOTALK(0x0029 - 0x001D),
/* 0x001D 0x05 */ MSCRIPT_CMD_OFFER_ITEM(GI_RUPEE_GREEN, 0x0),
/* 0x0022 0x03 */ MSCRIPT_CMD_SET_COLLECTIBLE(0x0001),
/* 0x0025 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0026 0x03 */ MSCRIPT_CMD_AUTOTALK(0x0),
/* 0x0029 0x03 */ MSCRIPT_CMD_BEGIN_TEXT(0x27A3),
/* 0x002C 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x002D 0x01 */ MSCRIPT_CMD_UNSET_AUTOTALK(),
/* 0x002E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C3E8[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_UPPER_CLOCKTOWN),
/* 0x0007 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x000A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_27_40, 0x0017 - 0x000F),
/* 0x000F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0012 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0017 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x001A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x001D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C408[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_NORTH_CLOCKTOWN),
/* 0x0007 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x000A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_27_80, 0x0017 - 0x000F),
/* 0x000F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0012 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0017 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x001A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x001D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C428[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_UPPER_CLOCKTOWN),
/* 0x0007 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x000A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_01, 0x0017 - 0x000F),
/* 0x000F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0012 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0017 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x001A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x001D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C448[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_LOWER_CLOCKTOWN),
/* 0x0007 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x000A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_02, 0x0017 - 0x000F),
/* 0x000F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0012 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0017 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x001A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x001D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C468[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2787),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x03 */ MSCRIPT_CMD_SET_WEEK_EVENT_REG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_LOWER_CLOCKTOWN),
/* 0x0007 0x03 */ MSCRIPT_CMD_DELETE_ITEM(ITEM_LETTER_TO_KAFEI),
/* 0x000A 0x05 */ MSCRIPT_CMD_CHECK_WEEK_EVENT_REG(WEEKEVENTREG_28_04, 0x0017 - 0x000F),
/* 0x000F 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2788),
/* 0x0012 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x0015 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0016 0x01 */ MSCRIPT_CMD_DONE(),
/* 0x0017 0x03 */ MSCRIPT_CMD_CONTINUE_TEXT(0x2789),
/* 0x001A 0x03 */ MSCRIPT_CMD_NOTEBOOK_EVENT(BOMBERS_NOTEBOOK_EVENT_DEPOSITED_LETTER_TO_KAFEI),
/* 0x001D 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x001E 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C488[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x27A4),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x01 */ MSCRIPT_CMD_DONE(),
};
MsgScript D_80B2C490[] = {
/* 0x0000 0x03 */ MSCRIPT_CMD_PLAYER_TALK(0x2785),
/* 0x0003 0x01 */ MSCRIPT_CMD_AWAIT_TEXT(),
/* 0x0004 0x01 */ MSCRIPT_CMD_DONE(),
};
ActorProfile En_Pst_Profile = {
/**/ ACTOR_EN_PST,
/**/ ACTORCAT_PROP,
/**/ FLAGS,
/**/ OBJECT_PST,
/**/ sizeof(EnPst),
/**/ EnPst_Init,
/**/ EnPst_Destroy,
/**/ EnPst_Update,
/**/ EnPst_Draw,
};
static ColliderCylinderInit sCylinderInit = {
{
COL_MATERIAL_HIT1,
AT_NONE,
AC_NONE,
OC1_ON | OC1_TYPE_ALL,
OC2_TYPE_1,
COLSHAPE_CYLINDER,
},
{
ELEM_MATERIAL_UNK1,
{ 0x00000000, 0x00, 0x00 },
{ 0x00000000, 0x00, 0x00 },
ATELEM_NONE | ATELEM_SFX_NORMAL,
ACELEM_NONE,
OCELEM_ON,
},
{ 28, 72, 0, { 0, 0, 0 } },
};
static CollisionCheckInfoInit2 sColChkInfoInit = { 1, 0, 0, 0, MASS_IMMOVABLE };
typedef enum PostboxAnimation {
/* 0 */ POSTBOX_ANIM_IDLE,
/* 1 */ POSTBOX_ANIM_MAX
} PostboxAnimation;
static AnimationInfoS sAnimationInfo[POSTBOX_ANIM_MAX] = {
{ &gPostboxIdleAnim, 1.0f, 0, -1, ANIMMODE_ONCE, 0 }, // POSTBOX_ANIM_IDLE
};
void EnPst_UpdateCollision(EnPst* this, PlayState* play) {
Collider_UpdateCylinder(&this->actor, &this->collider);
CollisionCheck_SetOC(play, &play->colChkCtx, &this->collider.base);
}
s32 EnPst_HandleLetterDay1(EnPst* this) {
switch (this->actor.params) {
case POSTBOX_SOUTH_UPPER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_UPPER_CLOCKTOWN);
case POSTBOX_NORTH_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_NORTH_CLOCKTOWN);
case POSTBOX_EAST_UPPER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_UPPER_CLOCKTOWN);
case POSTBOX_EAST_LOWER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_EAST_LOWER_CLOCKTOWN);
case POSTBOX_SOUTH_LOWER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_DEPOSITED_LETTER_TO_KAFEI_SOUTH_LOWER_CLOCKTOWN);
default:
return false;
}
}
s32 EnPst_HandleLetterDay2(EnPst* this) {
switch (this->actor.params) {
case POSTBOX_SOUTH_UPPER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_27_40);
case POSTBOX_NORTH_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_27_80);
case POSTBOX_EAST_UPPER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_28_01);
case POSTBOX_EAST_LOWER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_28_02);
case POSTBOX_SOUTH_LOWER_CLOCKTOWN:
return CHECK_WEEKEVENTREG(WEEKEVENTREG_28_04);
default:
return false;
}
}
s32 EnPst_ChooseBehaviour(Actor* thisx, PlayState* play) {
PlayerItemAction itemAction = PLAYER_IA_NONE;
s32 scriptBranch = 0;
EnPst* this = (EnPst*)thisx;
switch (this->behaviour) {
case POSTBOX_BEHAVIOUR_WAIT_FOR_ITEM:
switch (Message_GetState(&play->msgCtx)) {
case TEXT_STATE_CHOICE:
case TEXT_STATE_EVENT:
if (Message_ShouldAdvance(play)) {
case TEXT_STATE_PAUSE_MENU:
itemAction = func_80123810(play);
scriptBranch = 0;
if ((itemAction == PLAYER_IA_LETTER_TO_KAFEI) || (itemAction == PLAYER_IA_LETTER_MAMA)) {
this->exchangeItemAction = itemAction;
this->behaviour++;
scriptBranch = 1;
} else if (itemAction <= PLAYER_IA_MINUS1) {
this->behaviour++;
scriptBranch = 3;
} else if (itemAction != PLAYER_IA_NONE) {
this->behaviour++;
scriptBranch = 2;
}
}
break;
default:
break;
}
break;
case POSTBOX_BEHAVIOUR_TAKE_ITEM:
if (this->exchangeItemAction == PLAYER_IA_LETTER_TO_KAFEI) {
scriptBranch = 1;
}
break;
default:
break;
}
return scriptBranch;
}
MsgScript* EnPst_GetMsgScript(EnPst* this, PlayState* play) {
if (Player_GetMask(play) == PLAYER_MASK_POSTMAN) {
return D_80B2C3B8;
}
if (this->stateFlags & 0x10) {
switch (this->actor.params) {
case POSTBOX_SOUTH_UPPER_CLOCKTOWN:
return D_80B2C3E8;
case POSTBOX_NORTH_CLOCKTOWN:
return D_80B2C408;
case POSTBOX_EAST_UPPER_CLOCKTOWN:
return D_80B2C428;
case POSTBOX_EAST_LOWER_CLOCKTOWN:
return D_80B2C448;
case POSTBOX_SOUTH_LOWER_CLOCKTOWN:
return D_80B2C468;
default:
return NULL;
}
}
if (this->stateFlags & 0x20) {
if (this->exchangeItemAction == PLAYER_IA_LETTER_MAMA) {
return D_80B2C488;
} else {
return D_80B2C490;
}
}
this->msgScriptCallback = EnPst_ChooseBehaviour;
switch (this->actor.params) {
case POSTBOX_SOUTH_UPPER_CLOCKTOWN:
return D_80B2C23C;
case POSTBOX_NORTH_CLOCKTOWN:
return D_80B2C288;
case POSTBOX_EAST_UPPER_CLOCKTOWN:
return D_80B2C2D4;
case POSTBOX_EAST_LOWER_CLOCKTOWN:
return D_80B2C320;
case POSTBOX_SOUTH_LOWER_CLOCKTOWN:
return D_80B2C36C;
default:
return NULL;
}
}
s32 EnPst_CheckTalk(EnPst* this, PlayState* play) {
Player* player = GET_PLAYER(play);
s32 ret = false;
if (((this->stateFlags & SUBS_OFFER_MODE_MASK) != SUBS_OFFER_MODE_NONE) &&
Actor_TalkOfferAccepted(&this->actor, &play->state)) {
this->stateFlags &= ~0x30;
if (player->exchangeItemAction == PLAYER_IA_LETTER_TO_KAFEI) {
this->stateFlags |= 0x10;
this->exchangeItemAction = player->exchangeItemAction;
} else if (player->exchangeItemAction != PLAYER_IA_NONE) {
this->stateFlags |= 0x20;
this->exchangeItemAction = player->exchangeItemAction;
}
// If Letter to Kafei is deposited, value is set to 2
this->isLetterToKafeiDeposited = EnPst_HandleLetterDay1(this);
SubS_SetOfferMode(&this->stateFlags, SUBS_OFFER_MODE_NONE, SUBS_OFFER_MODE_MASK);
this->behaviour = 0;
this->msgScriptCallback = NULL;
this->stateFlags |= 0x40;
this->msgScript = EnPst_GetMsgScript(this, play);
this->actionFunc = EnPst_Talk;
ret = true;
}
return ret;
}
s32 EnPst_SetOfferItemModeOnScreen(EnPst* this, PlayState* play, ScheduleOutput* scheduleOutput) {
SubS_SetOfferMode(&this->stateFlags, SUBS_OFFER_MODE_ONSCREEN, SUBS_OFFER_MODE_MASK);
return true;
}
s32 EnPst_ProcessScheduleOutput(EnPst* this, PlayState* play, ScheduleOutput* scheduleOutput) {
s32 ret = false;
this->stateFlags = 0;
switch (scheduleOutput->result) {
case POSTBOX_SCH_AVAILABLE:
ret = EnPst_SetOfferItemModeOnScreen(this, play, scheduleOutput);
break;
case POSTBOX_SCH_CHECKED_BY_POSTMAN:
ret = true;
break;
default:
break;
}
return ret;
}
/* The postbox does not have any necessary custom logic when following their schedule,
* instead it is all done in the process step. This is why this function is empty
*/
void EnPst_HandleSchedule(EnPst* this, PlayState* play) {
}
void EnPst_FollowSchedule(EnPst* this, PlayState* play) {
static ScheduleScript* sScheduleScripts[] = {
D_80B2C200, D_80B2C20C, D_80B2C218, D_80B2C224, D_80B2C230,
};
s16 params = this->actor.params;
ScheduleOutput scheduleOutput;
if (!Schedule_RunScript(play, sScheduleScripts[params], &scheduleOutput) ||
((this->scheduleResult != scheduleOutput.result) &&
!EnPst_ProcessScheduleOutput(this, play, &scheduleOutput))) {
this->actor.shape.shadowDraw = NULL;
this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
scheduleOutput.result = POSTBOX_SCH_NONE;
} else {
this->actor.shape.shadowDraw = ActorShadow_DrawCircle;
this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
}
this->scheduleResult = scheduleOutput.result;
EnPst_HandleSchedule(this, play);
}
void EnPst_Talk(EnPst* this, PlayState* play) {
if (MsgEvent_RunScript(&this->actor, play, this->msgScript, this->msgScriptCallback, &this->msgScriptPos)) {
if (EnPst_HandleLetterDay1(this) != this->isLetterToKafeiDeposited) {
switch (gSaveContext.save.day) {
case 1:
SET_WEEKEVENTREG(WEEKEVENTREG_91_04);
break;
case 2:
if (EnPst_HandleLetterDay2(this)) {
SET_WEEKEVENTREG(WEEKEVENTREG_91_08);
} else {
SET_WEEKEVENTREG(WEEKEVENTREG_91_04);
}
break;
default:
SET_WEEKEVENTREG(WEEKEVENTREG_91_08);
break;
}
}
SubS_SetOfferMode(&this->stateFlags, SUBS_OFFER_MODE_ONSCREEN, SUBS_OFFER_MODE_MASK);
this->msgScriptPos = 0;
this->actionFunc = EnPst_FollowSchedule;
}
}
void EnPst_Init(Actor* thisx, PlayState* play) {
s32 pad;
EnPst* this = (EnPst*)thisx;
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 18.0f);
SkelAnime_InitFlex(play, &this->skelAnime, &gPostboxSkel, NULL, this->jointTable, this->morphTable,
POSTBOX_LIMB_MAX);
Collider_InitAndSetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
CollisionCheck_SetInfo2(&this->actor.colChkInfo, DamageTable_Get(0x16), &sColChkInfoInit);
SubS_SetOfferMode(&this->stateFlags, SUBS_OFFER_MODE_ONSCREEN, SUBS_OFFER_MODE_MASK);
SubS_ChangeAnimationByInfoS(&this->skelAnime, sAnimationInfo, POSTBOX_ANIM_IDLE);
this->actor.attentionRangeType = ATTENTION_RANGE_0;
Actor_SetScale(&this->actor, 0.02f);
this->actionFunc = EnPst_FollowSchedule;
Actor_UpdateBgCheckInfo(play, &this->actor, 0.0f, 0.0f, 0.0f, UPDBGCHECKINFO_FLAG_4);
}
void EnPst_Destroy(Actor* thisx, PlayState* play) {
EnPst* this = (EnPst*)thisx;
Collider_DestroyCylinder(play, &this->collider);
}
void EnPst_Update(Actor* thisx, PlayState* play) {
EnPst* this = (EnPst*)thisx;
EnPst_CheckTalk(this, play);
this->actionFunc(this, play);
if (this->scheduleResult != POSTBOX_SCH_NONE) {
if (Actor_IsFacingPlayer(&this->actor, 0x1FFE)) {
this->unk214 = 0;
SubS_Offer(&this->actor, play, 60.0f, 20.0f, PLAYER_IA_NONE, this->stateFlags & SUBS_OFFER_MODE_MASK);
}
Actor_SetFocus(&this->actor, 20.0f);
EnPst_UpdateCollision(this, play);
}
}
s32 EnPst_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot, Actor* thisx) {
EnPst* this = (EnPst*)thisx;
f32 yTranslation;
if (limbIndex == POSTBOX_LIMB_MAIL_SLOT) {
if (this->stateFlags & 0x40) {
yTranslation = -100.0f;
} else {
yTranslation = 0.0f;
}
Matrix_Translate(0.0f, yTranslation, 0.0f, MTXMODE_APPLY);
}
return false;
}
void EnPst_Draw(Actor* thisx, PlayState* play) {
EnPst* this = (EnPst*)thisx;
if (this->scheduleResult != POSTBOX_SCH_NONE) {
Gfx_SetupDL25_Opa(play->state.gfxCtx);
SkelAnime_DrawFlexOpa(play, this->skelAnime.skeleton, this->skelAnime.jointTable, this->skelAnime.dListCount,
EnPst_OverrideLimbDraw, NULL, &this->actor);
}
}
|