25
edits
(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 < | 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 | ♥}} | ||
| | | <nowiki>{{r|\x03}}</nowiki> | ||
| HP or Damage | | HP or Damage | ||
|- | |- | ||
| {{Color | c | →}} | | {{Color | c | →}} | ||
| | | <nowiki>{{c|\x1a}}</nowiki> | ||
| Penetration, or slipping | | Penetration, or slipping | ||
|- | |- | ||
| {{Color | b | ♦}} | | {{Color | b | ♦}} | ||
| | | <nowiki>{{b|\x04}}</nowiki> | ||
| Armor value | | Armor value | ||
|- | |- | ||
| {{Color | C | ¢}} | | {{Color | C | ¢}} | ||
| | | <nowiki>{{C|\x9b}}</nowiki> | ||
| Cybernetics credit wedge | | Cybernetics credit wedge | ||
|} | |} |