Modding:Code page 437: Difference between revisions

1,417 bytes added ,  19:47, 27 June 2019
no edit summary
(Created page with "Category:Modding {| class="wikitable" ! style="text-align: center; padding: 5px;" | \u00__ ! style="text-align: center;" | _0 ! style="text-align: center;" | _1 ! style="...")
 
No edit summary
Line 1: Line 1:
[[Category:Modding]]
[[Category:Modding]]{{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. Below is the table of the entire codepage, including the associated unicode with the symbol. For more information, see Wikipedia's own page about [https://en.wikipedia.org/wiki/Code_page_437 Code page 437].


__TOC__
==Table==
{| class="wikitable"
{| class="wikitable"
! style="text-align: center; padding: 5px;" | \u00__
! style="text-align: center; padding: 5px;" | \u00__
Line 21: Line 25:
|-
|-
! style="text-align: center;" | 0_
! style="text-align: center;" | 0_
| style="text-align: center; padding: 10px;" | NUL{{Tooltip|Empty Character}}0000
| style="text-align: center; padding: 5px;" | NUL{{Tooltip|Empty Character}}
| style="text-align: center; padding: 10px;" | ☺
0000
| style="text-align: center; padding: 5px;" | ☺
263A
263A
| style="text-align: center; padding: 10px;" | ☻
| style="text-align: center; padding: 10px;" | ☻
Line 558: Line 563:
| style="text-align: center; padding: 10px;" | ²
| style="text-align: center; padding: 10px;" | ²
00B2
00B2
| style="text-align: center; padding: 10px;" | ■
| style="text-align: center; padding: 5px;" | ■
25A0
25A0
| style="text-align: center; padding: 10px;" | NBSP{{tooltip|non breaking space}}
| style="text-align: center; padding: 5px;" | NBSP{{tooltip|non breaking space}}
00A0
00A0
|}
==Example Codes in Qud==
In most cases, the strings are added as
<syntaxhighlight lang="c#">str.Append(color code).Append(escape code for symbol)</syntaxhighlight> Where <code>str</code> is an object of the <code>StringBuilder</code> class.
{| class = "wikitable"
! In Game
! String
! Usage
|-
| {{Color | r | ♥}}
| &r\u003
| HP or Damage
|-
| {{Color | c | →}}
| &c\u001a
| Penetration, or slipping
|-
| {{Color | b | ♦}}
| &b\u004
| Armor value
|-
| {{Color | C | ¢}}
| &C\u009b
| Cybernetics credit wedge
|}
==Unconventional Codes==
The following escape codes do not follow the regular code page 437 codes.
{| class = "wikitable"
! In Game
! String
! Usage
|-
| {{Color | K | ο}}
| &K\t
| Dodge symbol
|-
| {{Color | c | ☼}}
| &r\a
| Lase
|}
|}