The Legend of Zelda/TBL: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Creation!)
m (Xkeeper moved page The Legend of Zelda:TBL to The Legend of Zelda/TBL: normalize subpages and titles)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
The game does not make use of lowercase letters. However, for reasons explained below, normal text is represented by lowercase characters for the purpose of text editing. The explanations given for values 24+ should be removed before using this list in a .tbl file.  
{{TBL|game=The Legend of Zelda}}
 
==NPC Text==
 
The game does not make use of lowercase letters. However, for reasons explained below, normal text is represented by lowercase characters for the purpose of text editing. The tilde (~) is used to represent an indenting space. Indenting spaces are drawn without the delay and sound that occurs with other letters.
<pre>
00=0
00=0
01=1
01=1
02=2
02=2
03=3
03=3
04=4
04=4
05=5
05=5
06=6
06=6
07=7
07=7
08=8
08=8
09=9
09=9
0A=a
0A=a
0B=b
0B=b
0C=c
0C=c
0D=d
0D=d
0E=e
0E=e
0F=f
0F=f
10=g
10=g
11=h
11=h
12=i
12=i
13=j
13=j
14=k
14=k
15=l
15=l
16=m
16=m
17=n
17=n
18=o
18=o
19=p
19=p
1A=q
1A=q
1B=r
1B=r
1C=s
1C=s
1D=t
1D=t
1E=u
1E=u
1F=v
1F=v
20=w
20=w
21=x
21=x
22=y
22=y
23=z
23=z
24=_
25=~
28=,
29=!
2A='
2B=&
2C=.
2D="
2E=?
2F=-
</pre>


24=_ (space)
Each letter is stored in the lower six bits of a byte. The upper two bits of each byte are used for formatting codes. $80 specifies that the ''next'' character should appear on the second line. $40 specifies that the ''next'' character should appear on the third line. $C0 specifies the end of a string. Thus, $80 should be added to the last letter on the first line, $40 should be added to the last letter on the second line, and $C0 should be added to the very last character.


25=~ (indent space)
For example, to encode the string:


26= (nothing?)
  Y
HELLO
THAR!!1!


27=  (nothing?)
First convert the string to hex values


28=, (comma)
22
11 0E 15 15 18
1D 11 0A 1B 29 29 01 29


29=! (exclamation point)
Then add the values listed above to the last character of each line.


2A='(apostrophe)
<span style="color:#FF0000">'''A2'''</span>
11 0E 15 15 <span style="color:#FF0000">'''58'''</span>
1D 11 0A 1B 29 29 01 <span style="color:#FF0000">'''E9'''</span>


2B=& (ampersand)
The resulting hex is <tt>A2 11 0E 15 15 58 1D 11 0A 1B 29 29 01 E9</tt>.


2C=. (period)
==Story Text==


2D=" (quotes)  
The story text ("MANY YEARS AGO PRINCE DARKNESS...") uses additional characters and graphics mixed in with the text. In the table below, quotes are represented with an underscore (note that there are two different quote characters used in this game!), parentheses are used to represent the vertical parts of the "wreath", the less than and greater than sign are used for the horizontal parts of the wreath, and the number sign is used for the corner piece of the wreath.


2E=? (question mark)
<pre>
 
00=0
2F=- (hyphen)
01=1
 
02=2
 
03=3
Some (probably most) messages in the game run more than one line. There is no singular "line end" command; each letter and character has a secondary form that tells the game to end the current line and begin a new one. These secondary forms are visually identical to their primary counterparts, but to make their presence obvious during text editing, they are represented here with capitals.
04=4
 
05=5
 
06=6
Secondary/Line-End Forms:
07=7
 
08=8
 
09=9
80=0
0A=a
 
0B=b
81=1
0C=c
 
0D=d
82=2
0E=e
 
0F=f
83=3
10=g
 
11=h
84=4
12=i
 
13=j
85=5
14=k
 
15=l
86=6
16=m
 
17=n
87=7
18=o
 
19=p
88=8
1A=q
 
1B=r
89=9
1C=s
 
1D=t
8A=A
1E=u
 
1F=v
8B=B
20=w
 
21=x
8C=C
22=y
 
23=z
8D=D
24=  
 
25=
8E=E
28=,
 
29=!
8F=F
2A='
 
2B=&
90=G
2C=.
 
2D="
91=H
2E=?
 
2F=-
92=I
E2=(
 
E3=)
93=J
E4=<
 
E5=>
94=K
E6=#
 
F8=_
95=L
</pre>
 
{{Internal Data|game=The Legend of Zelda}}
96=M
 
97=N
 
98=O
 
99=P
 
9A=Q
 
9B=R
 
9C=S
 
9D=T
 
9E=U
 
9F=V
 
A0=W
 
A1=X
 
A2=Y
 
A3=Z
 
A4=_ (space)
 
A5=~ (indent space)
 
A6= (nothing?)
 
A7= (nothing?)
 
A8=, (comma)
 
A9=! (exclamation point)
 
AA=' (apostrophe)
 
AB=& (ampersand)
 
AC=. (period)
 
AD=" (quotes)
 
AE=? (qustion mark)
 
AF=- (hyphen)

Latest revision as of 02:42, 24 January 2024

Chip tiny.png The following article is a Text Table for The Legend of Zelda.

NPC Text

The game does not make use of lowercase letters. However, for reasons explained below, normal text is represented by lowercase characters for the purpose of text editing. The tilde (~) is used to represent an indenting space. Indenting spaces are drawn without the delay and sound that occurs with other letters.

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=a
0B=b
0C=c
0D=d
0E=e
0F=f
10=g
11=h
12=i
13=j
14=k
15=l
16=m
17=n
18=o
19=p
1A=q
1B=r
1C=s
1D=t
1E=u
1F=v
20=w
21=x
22=y
23=z
24=_ 
25=~
28=,
29=!
2A='
2B=&
2C=.
2D="
2E=?
2F=-

Each letter is stored in the lower six bits of a byte. The upper two bits of each byte are used for formatting codes. $80 specifies that the next character should appear on the second line. $40 specifies that the next character should appear on the third line. $C0 specifies the end of a string. Thus, $80 should be added to the last letter on the first line, $40 should be added to the last letter on the second line, and $C0 should be added to the very last character.

For example, to encode the string:

Y
HELLO
THAR!!1!

First convert the string to hex values

22
11 0E 15 15 18
1D 11 0A 1B 29 29 01 29

Then add the values listed above to the last character of each line.

A2
11 0E 15 15 58
1D 11 0A 1B 29 29 01 E9

The resulting hex is A2 11 0E 15 15 58 1D 11 0A 1B 29 29 01 E9.

Story Text

The story text ("MANY YEARS AGO PRINCE DARKNESS...") uses additional characters and graphics mixed in with the text. In the table below, quotes are represented with an underscore (note that there are two different quote characters used in this game!), parentheses are used to represent the vertical parts of the "wreath", the less than and greater than sign are used for the horizontal parts of the wreath, and the number sign is used for the corner piece of the wreath.

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=a
0B=b
0C=c
0D=d
0E=e
0F=f
10=g
11=h
12=i
13=j
14=k
15=l
16=m
17=n
18=o
19=p
1A=q
1B=r
1C=s
1D=t
1E=u
1F=v
20=w
21=x
22=y
23=z
24= 
25=
28=,
29=!
2A='
2B=&
2C=.
2D="
2E=?
2F=-
E2=(
E3=)
E4=<
E5=>
E6=#
F8=_