25
edits
(Moves to Modding Resources category) |
(recommend {{color|text}} and \x over \u) |
||
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>. | |||
<syntaxhighlight lang="c#"> | 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]]. | ||
{| class = "wikitable" | {| class = "wikitable" | ||
Line 328: | Line 328: | ||
|- | |- | ||
| {{Color | r | ♥}} | | {{Color | r | ♥}} | ||
| &r\ | | &x7b;&x7b;r|\x03&x7c;&x7c; | ||
| HP or Damage | | HP or Damage | ||
|- | |- | ||
| {{Color | c | →}} | | {{Color | c | →}} | ||
| &c\ | | &x7b;&x7b;c|\x1a&x7c;&x7c; | ||
| Penetration, or slipping | | Penetration, or slipping | ||
|- | |- | ||
| {{Color | b | ♦}} | | {{Color | b | ♦}} | ||
| &b\ | | &x7b;&x7b;b|\x04&x7c;&x7c; | ||
| Armor value | | Armor value | ||
|- | |- | ||
| {{Color | C | ¢}} | | {{Color | C | ¢}} | ||
| &C\ | | &x7b;&x7b;C|\x9b&x7c;&x7c; | ||
| Cybernetics credit wedge | | Cybernetics credit wedge | ||
|} | |} | ||
Line 352: | Line 352: | ||
|- | |- | ||
| {{Color | r | ♥}} | | {{Color | r | ♥}} | ||
| <nowiki> | | <nowiki>{{r|}}</nowiki> | ||
| HP or Damage | | HP or Damage | ||
|- | |- | ||
| {{Color | c | →}} | | {{Color | c | →}} | ||
| <nowiki> | | <nowiki>{{c|}}</nowiki> | ||
| Penetration, or slipping | | Penetration, or slipping | ||
|- | |- | ||
| {{Color | b | ♦}} | | {{Color | b | ♦}} | ||
| <nowiki> | | <nowiki>{{b|}}</nowiki> | ||
| Armor value | | Armor value | ||
|- | |- | ||
| {{Color | C | ¢}} | | {{Color | C | ¢}} | ||
| <nowiki> | | <nowiki>{{C|›}}</nowiki> | ||
| Cybernetics credit wedge | | Cybernetics credit wedge | ||
|} | |} |