Modding:Code page 437: Difference between revisions

14 bytes removed ,  01:43, 8 August 2022
 
(3 intermediate revisions by the same user not shown)
Line 320: Line 320:
==Example Codes in Qud==
==Example Codes in Qud==
To use one of these characters in a name or description in game, you may need to escape them.  For instance, to get the ♥, in C# you would use <code>"\x03"</code>, and in the XML <code>&x03;</code>.
To use one of these characters in a name or description in game, you may need to escape them.  For instance, to get the ♥, in C# you would use <code>"\x03"</code>, and in the XML <code>&x03;</code>.
In most cases, the strings are added with color codes, so here are some examples of that.  For more info about Caves of Qud's color code, check out [[Modding: Text Color Codes & Object Rendering]].
In most cases, the strings are added with color codes, so here are some examples of that.  For more info about Caves of Qud's color code, check out [[Modding: Colors & Object Rendering]].


{| class = "wikitable"
{| class = "wikitable"
Line 380: Line 380:
| <code><nowiki>{{K|\t}}</nowiki></code>
| <code><nowiki>{{K|\t}}</nowiki></code>
| Dodge symbol
| Dodge symbol
| This works because <code>\t</code> stands for the TAB character, which has an ASCII character code of 9. Thus, it maps to code page 437 \u0009.
| This works because <code>\t</code> stands for the TAB character, which has an ASCII character code of 9. Thus, it maps to code page 437 \x09.
|-
|-
| {{Color | G | •}}
| {{Color | G | •}}
| <code><nowiki>{{G|\a}}</nowiki></code>
| <code><nowiki>{{G|\a}}</nowiki></code>
| Blocked attack blip<br>(among other things)
| Blocked attack blip<br>(among other things)
| This works because <code>\a</code> stands for the BEL character, which has an ASCII character code of 7. Thus, it maps to code page 437 \u0007.
| This works because <code>\a</code> stands for the BEL character, which has an ASCII character code of 7. Thus, it maps to code page 437 \x07.
|}
|}


{{Modding Navbox}}
{{Modding Navbox}}