User Tools

Site Tools


earthbound:actionscripts

This is an old revision of the document!


Actionscripts

ID Used By Original Name Description
0
1 Lead party member Follows an invisible player-controlled entity
2 All other party members, except bubble monkey Follows leader closely
3 Bubble monkey, while in party Follows leader, gets distracted sometimes
4 Character viewer
5
6 Same as Movement 12.
7
8 ANIM_MAPOBJSTILL Stationary, does not walk in place. When you talk to the NPC, it turns to face you. After the NPC finished talking, it will not turn back to face its original direction.
9
10 ANIM_PEOPLEWALK0 Stationary, walks very fast. When you talk to the NPC, it turns to face you. After the NPC finished talking, it will not turn back to face its original direction.
11
12 ANIM_PEOPLEWALK1 NPC randomly walks about. Has no limit on how far it will move from start location.
13 NPC randomly walks about. Will move up to about 16 pixels on X axis and 16 pixels on Y axis from start location.
14 NPC randomly walks about. Will move up to about 24 pixels on X axis and 24 pixels on Y axis from start location.
15 NPC randomly walks about. Will move up to about 40 pixels on X axis and 40 pixels on Y axis from start location.
16 NPC randomly walks about. Will move up to about 32 pixels on X axis and 16 pixels on Y axis from start location.
17 NPC randomly walks about. Will move up to about 32 pixels on X axis and 16 pixels on Y axis from start location. Identical to Movement 16.
18 King (intro)
19 Continually walks in place, facing a single direction. When the player gets close, it moves quickly and directly towards the player.
20 Black Antoid, Coil Snake Remains motionless, facing the player. Only moves when the player moves.
21 Unassuming Local Guy, Urban Zombie, Foppy Walks about looking back and forth. When the player gets close, after a brief pause it moves towards the player.
22 Runaway Dog, Gruff Goat Walks about, looking at a single direction while standing still. When the player gets close, it moves towards the player.
23 Li'l UFO, Spinning Robo Flies around erratically at high speeds.
24 Ramblin' Evil Mushroom, Smilin' Sam Uses a special “resting frame” (9th frame on the spritegroup) while standing still. When the player gets close, the sprite moves towards the player.
25 Spiteful Crow, Mr. Batty Uses a special “resting frame” (9th frame on the spritegroup) while standing still. When the player gets close, it starts moving towards the player in a back-and-forth manner.
26 Starman, Starman Super Stands motionless. When the player gets close, it starts teleporting towards the player.
27 Electro Swoosh, Dali's Clock Slowly moves about in circles. When the player gets close, it picks up speed and homes in on the player. If it runs into an obstacle, it might teleport a short distance to try to bypass the obstacle.
28 Crazed Sign, Petrified Royal Guard Remains motionless. When the player gets close, the sprite shakes, and then charges the player.
29 Territorial Oak, Cave Boy Walks about very slowly. When the player gets close, it picks up speed and moves towards the player.
30 Mad Taxi, Ego Orb Remains motionless. When the player gets close, the sprite shakes, and moves towards the player. It picks up speed as it moves.
31 Worthless Protoplasm, Scalding Coffee Cup Remains motionless. Will charge the player in a straight line, and keep on going if it misses.
32 Magic Butterfly Always runs away from the player. When touched, performs the Magic Butterfly effect.
33
34
35 Linked to with [19 04 A2], appears to never be used on its own. Makes it so the NPC will face its original direction after you interact with it.
36
37 Mom (intro)
38 Door knock
39
40 Home telephone
41
42
43 ANIM_PEOPLEWALK1_LIVE
44
45 Pokey (Intro)
46
47 The sprite walks on top of your party lead character, or rather, the middle of the screen. Typically used when a character join your party.
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 The sprite will run right up to your lead character at a fairly fast speed. Also causes your lead character to turn and face the sprite.
234 The sprite will run right up to your lead character at a fairly fast speed. Also causes your lead character to turn and face the sprite.
235 The sprite will run right up to your lead character at a fairly fast speed. Also causes your lead character to turn and face the sprite.
236 The sprite will run right up to your lead character at a fairly fast speed. Also causes your lead character to turn and face the sprite.
237 The sprite will run right up to your lead character at a fairly fast speed. Also causes your lead character to turn and face the sprite.
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 Cultist walking in circle, northwest Walks in a circle, starting at a northwest point
280 Cultist walking in circle, northeast Walks in a circle, starting at a northeast point
281 Cultist walking in circle, east Walks in a circle, starting at an east point
282 Cultist walking in circle, south Walks in a circle, starting at a south point
283 Cultist walking in circle, west Walks in a circle, starting at a west point
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 Mu Training?
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355 Used by Giygas battle intro?
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 Venus Concert Main
439
440 Venus Concert - Twinkles 1
441 Venus Concert - Twinkles 2
442 Venus Concert - Venus
443 Venus Concert - Mr. Spoon 1
444 Venus Concert - Mr. Spoon 2
445 Venus Concert - Bodyguard 1
446 Venus Concert - Bodyguard 2
447 Venus Concert - Cleanup?
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 Itoi production logo?
536
537
538
539
540
541
542
543
544
545
546 Nintendo presentation logo?
547 Used by Giygas battle intro?
548 Used by Giygas battle intro?
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 Similar to enemy movement code 27, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
598 Similar to enemy movement code 21, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
599 Similar to enemy movement code 20, except it reads the NPC's Text Pointer 1 once the sprite touches the player. Slower than 600.
600 Similar to enemy movement code 20, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
601 Similar to enemy movement code 31, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
602 Similar to enemy movement code 29, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
603 Similar to enemy movement code 28, except it reads the NPC's Text Pointer 1 once the sprite touches the player.
604
605 Stationary, does not walk in place. When you talk to the NPC, it turns to face you. After the NPC finished talking, it will quickly turn back to face its original direction.
606 Stationary, walks at a medium pace, but slower than Movement 10. When you talk to the NPC, it turns to face you. After the NPC finished talking, it will quickly turn back to face its original direction.
607 If flag 0x278 is set, then this NPC will disappear. Otherwise, this movement code is identical to Movement 12.
608 If flag 0x278 is set, then this NPC will disappear. Otherwise, this movement code is identical to Movement 13.
609 If flag 0x278 is set, then this NPC will disappear. Otherwise, this movement code is identical to Movement 16.
610 If flag 0x278 is set, then this NPC will disappear. Otherwise, this movement code is identical to Movement 605.
611
612
613
614
615
616
617
618
619
620
621
622 Sleeping Ness in intro
623
624
625 ANIM_MOUSE_ADDPARTY
626
627 Sleeping King
628 Sleep emote
629
630
631
632
633 ANIM_INTO_NIGHT
634 ANIM_BLACKOUT
635 ANIM_BLINK_SUICIDE
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 ANIM_INSEKI_STARMAN
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685 ANIM_SLOTBROS_ROTATE_L
686 ANIM_SLOTBROS_ROTATE_M
687 ANIM_SLOTBROS_ROTATE_N
688 ANIM_SLOTBROS_STOP_L
689 ANIM_SLOTBROS_STOP_M
690 ANIM_SLOTBROS_STOP_N
691 ANIM_SLOTBROS_STOP_N_REACH
692 ANIM_SLOTBROS_PRESENT
693 Spins around clockwise very quickly.
694 Spins around clockwise at a moderate speed. Half as fast as Movement 693.
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757 Used in Mr Saturn prayer?
758
759
760 ANIM_END_PHOTOMAN
761 ANIM_END_SHADOW
762 ANIM_END_CAMERA
763 Magic cake transition
764
765 ANIM_KANJI_AT_THE_NIGHT
766
767
768
769
770
771
772 ANIM_TRACY_APPEAR
773
774
775
776
777
778
779 ANIM_SEAL_PC_ALL_DIRLEFT
780 ANIM_SEAL_PC_ALL_DIRDOWN
781 ANIM_SEAL_PC_PAULA_DIRDOWN
782
783
784
785
786
787
788 Title screen 1
789 Title screen 2
790 Title screen 3
791 Title screen 4
792 Title screen 5
793 Title screen 6
794 Title screen 7
795 Title screen 8
796 Title screen 9
797 Title screen 10
798 Title screen 11
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859 Used by Porky in Giygas battle intro?
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
earthbound/actionscripts.1674700539.txt.gz · Last modified: 2023/01/26 02:35 by herringway