Modding:Code page 437: Difference between revisions

60 bytes removed ,  01:37, 8 August 2022
maybe this will work for the {{'s
(recommend {{color|text}} and \x over \u)
(maybe this will work for the {{'s)
Line 319: Line 319:


==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 <syntaxhighlight lang="c#">"\x03"</syntaxhighlight>, and in the XML <sytaxhighlight lang="xml">&x03;</syntaxhighlight>.
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: Text Color Codes & Object Rendering]].


Line 328: Line 328:
|-
|-
| {{Color | r | ♥}}
| {{Color | r | ♥}}
| &x7b;&x7b;r|\x03&x7c;&x7c;
| <nowiki>{{r|\x03}}</nowiki>
| HP or Damage
| HP or Damage
|-
|-
| {{Color | c | →}}
| {{Color | c | →}}
| &x7b;&x7b;c|\x1a&x7c;&x7c;
| <nowiki>{{c|\x1a}}</nowiki>
| Penetration, or slipping
| Penetration, or slipping
|-
|-
| {{Color | b | ♦}}
| {{Color | b | ♦}}
| &x7b;&x7b;b|\x04&x7c;&x7c;
| <nowiki>{{b|\x04}}</nowiki>
| Armor value
| Armor value
|-
|-
| {{Color | C | ¢}}
| {{Color | C | ¢}}
| &x7b;&x7b;C|\x9b&x7c;&x7c;
| <nowiki>{{C|\x9b}}</nowiki>
| Cybernetics credit wedge
| Cybernetics credit wedge
|}
|}