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
|
This tutorial describes how to change the default names for the Player and Rival.
This is a very simple edit, and is really more about just finding the relevant code.
## Contents
1. [PLAYER: Changing the default name choices upon New Game][sec-1]
2. [PLAYER: Changing the default option when no name is typed in][sec-2]
3. [RIVAL: Changing the default option when no name is typed in][sec-3]
## 1. PLAYER: Changing the default name choices upon New Game
Simply edit the file [data/player_names.asm](../blob/master/data/player_names.asm).
We'll use the forenames of the male and female _Ghostbusters_ as an example:
```diff
ChrisNameMenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 0, 0, 10, TEXTBOX_Y - 1
dw .MaleNames
db 1 ; ????
db 0 ; default option
; ...
db "NEW NAME@"
MalePlayerNameArray:
- db "CHRIS@"
- db "MAT@"
- db "ALLAN@"
- db "JON@"
+ db "PETER@"
+ db "RAY@"
+ db "EGON@"
+ db "WINSTON@"
db 2 ; displacement
db " NAME @" ; title
; ...
db "NEW NAME@"
FemalePlayerNameArray:
- db "KRIS@"
- db "AMANDA@"
- db "JUANA@"
- db "JODI@"
+ db "ERIN@"
+ db "ABBY@"
+ db "JILLIAN@"
+ db "PATTY@"
db 2 ; displacement
db " NAME @" ; title
```
## 2. PLAYER: Changing the default option when no name is typed in
Currently, if you select the option to type in your own Player name but leave the option blank,
the name defaults to **CHRIS** (Male) or **KRIS** (Female).
This can be edited in [engine/menus/intro_menu.asm](../blob/master/engine/menus/intro_menu.asm):
```diff
; ...
NamePlayer:
farcall MovePlayerPicRight
farcall ShowPlayerNamingChoices
ld a, [wMenuCursorY]
dec a
; ...
jr z, .Male
ld de, .Kris
.Male:
call InitName
ret
.Chris:
- db "CHRIS@@@@@@"
+ db "PETER@@@@@@"
.Kris:
- db "KRIS@@@@@@@"
+ db "ERIN@@@@@@@"
; ...
```
## 3. RIVAL: Changing the default option when no name is typed in
Similarly to the Player, the Rival is called **SILVER** if the naming screen is left blank.
Let's name him after the _Ghostbusters_ villain **WALTER** as an example.
Edit [engine/events/specials.asm](../blob/master/engine/events/specials.asm):
```diff
; ...
NameRival:
ld b, NAME_RIVAL
ld de, wRivalName
farcall _NamingScreen
- ; default to "SILVER"
+ ; default to "WALTER"
ld hl, wRivalName
ld de, .default
call InitName
ret
.default
- db "SILVER@"
+ db "WALTER@"
; ...
```
That's all that is needed!
[sec-1]: #1-player-changing-the-default-name-choices-upon-new-game
[sec-2]: #2-player-changing-the-default-option-when-no-name-is-typed-in
[sec-3]: #3-rival-changing-the-default-option-when-no-name-is-typed-in
|