Modding:Code page 437: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (→‎Example Codes in Qud: i forgot a few 0s)
mNo edit summary
Line 608: Line 608:
|-
|-
| {{Color | c | ☼}}
| {{Color | c | ☼}}
| &r\a
| &c\a
| Lase
| Lase
|}
|}

Revision as of 20:08, 27 June 2019

This article has information that is missing or not up to par.
Reason: More testing needed. Are there other codes that do not follow 437 conventions? If the intended 437 code is used for these irregular symbols, does it still work?

In Qud, there are certain symbols that are used in the game strings that take the form of \u0000, where 0 is any digit in hexadecimal. This code does not represent the character in unicode, rather the code page 437 on old IBM pcs. Below is the table of the entire codepage, including the associated unicode with the symbol. For more information, see Wikipedia's own page about Code page 437.

Table

\u00__ _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F
0_ NUL?Empty Character

0000

263A

262B

2665

2666

2663

2660

2022

25D8

25CB

25D9

2642

2640

266A

266B

263C

1_

25BA

25C4

2195

203C

00B6

§

00A7

25AC

21A8

2191

2193

2192

2190

221F

2194

25B2

25BC

2_ SP?Whitespace

0020

!

0021

"

0022

#

0023

$

0024

%

0025

&

0026

'

0027

(

0028

)

0029

*

002A

+

002B

,

002C

-

002D

.

002E

/

002F

3_ 0

0030

1

0031

2

0032

3

0033

4

0034

5

0035

6

0036

7

0037

8

0038

9

0039

:

003A

;

003B

<

003C

=

003D

>

003E

?

003F

4_ @

0040

A

0041

B

0042

C

0043

D

0044

E

0045

F

0046

G

0047

H

0048

I

0049

J

004A

K

004B

L

004C

M

004D

N

004E

O

004F

5_ P

0050

Q

0051

R

0052

S

0053

T

0054

U

0055

V

0056

W

0057

X

0058

Y

0059

Z

005A

[

005B

\

005C

]

005D

^

005E

_

005F

6_ `

0060

a

0061

b

0062

c

0063

d

0064

e

0065

f

0066

g

0067

h

0068

i

0069

j

006A

k

006B

l

006C

m

006D

n

006E

o

006F

7_ p

0070

q

0071

r

0072

s

0073

t

0074

u

0075

v

0076

w

0077

x

0078

y

0079

z

007A

{

007B

¦?Modern computers will render this as a |.

007C

}

007D

~

007E

2302

8_ Ç

00C7

ü

00FC

é

00E9

â

00E2

ä

00E4

à

00E0

å

00E5

ç

00E7

ê

00EA

ë

00EB

è

00E8

ï

00EF

î

00EE

ì

00EC

Ä

00C4

Å

00C5

9_ É

00C9

æ

00E6

Æ

00C6

ô

00F4

ö

00F6

ò

00F2

û

00FB

ù

00F9

ÿ

00FF

Ö

00D6

Ü

00DC

¢

00A2

£

00A3

¥

00A5

20A7

ƒ

0192

A_ á

00E1

í

00ED

ó

00F3

ú

00FA

ñ

00F1

Ñ

00D1

ª

00AA

º

00BA

¿

00BF

2310

¬

00AC

½

00BD

¼

00BC

¡

00A1

«

00AB

»

00BB

B_

2591

2592

2593

2502

2524

2561

2562

2556

2555

2563

2551

2557

255D

255C

255B

2510

C_

2514

2534

252C

251C

2500

253C

255E

255F

255A

2554

2569

2566

2560

2550

256C

2567

D_

2568

2564

2565

2559

2558

2552

2553

256B

256A

2518

250C

2588

2584

258C

2590

2580

E_ α

03B1

ß

00DF

Γ

0393

π

03C0

Σ

03A3

σ

03C3

µ

00B5

τ

03C4

Φ

03A6

Θ

0398

Ω

03A9

δ

03B4

221E

φ

03C6

ε

03B5

2229

F_

2261

±

00B1

2265

2264

2320

2321

÷

00F7

2248

°

00B0

2022

·

00B7

221A

207F

²

00B2

25A0

NBSP?non breaking space

00A0

Example Codes in Qud

In most cases, the strings are added as

str.Append(color code).Append(escape code for symbol)

Where str is an object of the StringBuilder class. For more info about Caves of Qud's color code, check out Modding: Text Color Codes & Object Rendering.

In Game String Usage
&r\u0003 HP or Damage
&c\u001a Penetration, or slipping
&b\u0004 Armor value
¢ &C\u009b Cybernetics credit wedge

Unconventional Codes

The following escape codes do not follow the regular code page 437 codes.

In Game String Usage
ο &K\t Dodge symbol
&c\a Lase