25
edits
(maybe this will work for the {{'s) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
==Table== | ==Table== | ||
{| class="wikitable" style="font-family:Source Code Pro, Lucida Console, Consolas; " | {| class="wikitable" style="font-family:Source Code Pro, Lucida Console, Consolas; " | ||
! style="padding: 0.8em 0.2em;" | \ | ! style="padding: 0.8em 0.2em;" | \x__ | ||
! _0 | ! _0 | ||
! _1 | ! _1 | ||
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: | 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 328: | Line 328: | ||
|- | |- | ||
| {{Color | r | ♥}} | | {{Color | r | ♥}} | ||
| <nowiki>{{r|\x03}}</nowiki> | | <code><nowiki>{{r|\x03}}</nowiki></code> | ||
| HP or Damage | | HP or Damage | ||
|- | |- | ||
| {{Color | c | →}} | | {{Color | c | →}} | ||
| <nowiki>{{c|\x1a}}</nowiki> | | <code><nowiki>{{c|\x1a}}</nowiki></code> | ||
| Penetration, or slipping | | Penetration, or slipping | ||
|- | |- | ||
| {{Color | b | ♦}} | | {{Color | b | ♦}} | ||
| <nowiki>{{b|\x04}}</nowiki> | | <code><nowiki>{{b|\x04}}</nowiki></code> | ||
| Armor value | | Armor value | ||
|- | |- | ||
| {{Color | C | ¢}} | | {{Color | C | ¢}} | ||
| <nowiki>{{C|\x9b}}</nowiki> | | <code><nowiki>{{C|\x9b}}</nowiki></code> | ||
| Cybernetics credit wedge | | Cybernetics credit wedge | ||
|} | |} | ||
Line 352: | Line 352: | ||
|- | |- | ||
| {{Color | r | ♥}} | | {{Color | r | ♥}} | ||
| <nowiki>{{r|}}</nowiki> | | <code><nowiki>{{r|}}</nowiki></code> | ||
| HP or Damage | | HP or Damage | ||
|- | |- | ||
| {{Color | c | →}} | | {{Color | c | →}} | ||
| <nowiki>{{c|}}</nowiki> | | <code><nowiki>{{c|}}</nowiki></code> | ||
| Penetration, or slipping | | Penetration, or slipping | ||
|- | |- | ||
| {{Color | b | ♦}} | | {{Color | b | ♦}} | ||
| <nowiki>{{b|}}</nowiki> | | <code><nowiki>{{b|}}</nowiki></code> | ||
| Armor value | | Armor value | ||
|- | |- | ||
| {{Color | C | ¢}} | | {{Color | C | ¢}} | ||
| <nowiki>{{C|›}}</nowiki> | | <code><nowiki>{{C|›}}</nowiki></code> | ||
| Cybernetics credit wedge | | Cybernetics credit wedge | ||
|} | |} | ||
Line 378: | Line 378: | ||
|- | |- | ||
| {{Color | K | ο}} | | {{Color | K | ο}} | ||
| | | <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 \ | | 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> | ||
| 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 \ | | 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}} |