Modding:Code page 437: Difference between revisions

reclarified and added an example table
(updated with info about decimal codes less than 100)
(reclarified and added an example table)
Line 1: Line 1:
[[Category:Modding]]{{Modding Info}}{{Missing info|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?}}
[[Category:Modding]]{{Modding Info}}{{Missing info|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 <code>\u0000</code>, where <code>0</code> is any digit in hexadecimal. This code does not represent the character in unicode, rather the code page 437 on old IBM pcs. The game also uses the escape code <code>&#000;</code>, where <code>0</code> is any digit in decimal in its XML files. Any numbers less than 3 digits are padded from the left with <code>x</code>. Below is the table of the entire codepage. For more information, see Wikipedia's own page about [https://en.wikipedia.org/wiki/Code_page_437 Code page 437].
In Qud, there are certain symbols that are used in the game strings that take the form of <code>\u0000</code>, where <code>0</code> is any digit in hexadecimal. In XML, this also takes the form of <code>&#x00;</code>, where the <code>0</code> is any digit in hexadecimal (Single digit hexadecimal will not be padded or have trailing 0s Ex: <code>&#x4;</code>). This code does not represent the character in unicode, rather the code page 437 on old IBM pcs.  
 
The game also uses the escape code <code>&#000;</code>, where <code>0</code> is any digit in decimal in its XML files. Below is the table of the entire codepage. For more information, see Wikipedia's own page about [https://en.wikipedia.org/wiki/Code_page_437 Code page 437].


__TOC__
__TOC__
Line 357: Line 359:
| &c\a
| &c\a
| Lase
| Lase
|}
In xml:
{| class = "wikitable"
! In Game
! String
! Usage
|-
| {{Color | r | ♥}}
| <nowiki>&amp;r&#x3;</nowiki>
| HP or Damage
|-
| {{Color | c | →}}
| <nowiki>&amp;c&#x1A;</nowiki>
| Penetration, or slipping
|-
| {{Color | b | ♦}}
| <nowiki>&amp;b&#x4</nowiki>
| Armor value
|-
| {{Color | C | ¢}}
| <nowiki>&amp;C&#9b;</nowiki>
| Cybernetics credit wedge
|}
|}