Text Guide: Difference between revisions

From PMDOWiki
IDK (talk | contribs)
formatting
IDK (talk | contribs)
code formatting
Line 63: Line 63:
=== A/An ===
=== A/An ===
Vowel-dependent
Vowel-dependent
* If the next word begins with a consonant, it becomes a
* If the next word begins with a consonant, it becomes <code>a</code>
* If the next word begins with a vowel, it becomes an
* If the next word begins with a vowel, it becomes <code>an</code>
<pre>
<pre>
[a/an]
[a/an]
Line 71: Line 71:
=== El/La ===
=== El/La ===
Gender-dependent
Gender-dependent
* If the next word is tagged with [male] or does not have a gender tag, it becomes el
* If the next word is tagged with <code>[male]</code> or does not have a gender tag, it becomes <code>el</code>
* If the next word is tagged with [female], it becomes la
* If the next word is tagged with <code>[female]</code>, it becomes <code>la</code>
<pre>
<pre>
[el/la]
[el/la]
Line 79: Line 79:
=== Der/Die/Das ===
=== Der/Die/Das ===
Gender-dependent
Gender-dependent
* If the next word is tagged with [male] or does not have a gender tag, it becomes der
* If the next word is tagged with <code>[male]</code> or does not have a gender tag, it becomes <code>der</code>
* If the next word is tagged with [female], it becomes die
* If the next word is tagged with <code>[female]</code>, it becomes <code>die</code>
* If the next word is tagged with [neutral], it becomes das
* If the next word is tagged with <code>[neutral]</code>, it becomes <code>das</code>
<pre>
<pre>
[der/die/das]
[der/die/das]
Line 88: Line 88:
=== Ein/Eine/Einen ===
=== Ein/Eine/Einen ===
Gender-dependent
Gender-dependent
* If the next word is tagged with [male] or does not have a gender tag, it becomes ein
* If the next word is tagged with <code>[male]</code> or does not have a gender tag, it becomes <code>ein</code>
* If the next word is tagged with [female], it becomes eine
* If the next word is tagged with <code>[female]</code>, it becomes <code>eine</code>
* If the next word is tagged with [neutral], it becomes einen
* If the next word is tagged with <code>[neutral]</code>, it becomes <code>einen</code>
<pre>
<pre>
[ein/eine/einen]
[ein/eine/einen]
Line 97: Line 97:
=== Ein/Eine/Ein ===
=== Ein/Eine/Ein ===
Gender-dependent
Gender-dependent
* If the next word is tagged with [male] or does not have a gender tag, it becomes ein.
* If the next word is tagged with <code>[male]</code> or does not have a gender tag, it becomes <code>ein</code>
* If the next word is tagged with [female], it becomes eine
* If the next word is tagged with <code>[female]</code>, it becomes <code>eine</code>
* If the next word is tagged with [neutral], it becomes ein
* If the next word is tagged with <code>[neutral]</code>, it becomes <code>ein</code>
<pre>
<pre>
[ein/eine/ein]
[ein/eine/ein]
Line 106: Line 106:
=== Il/La ===
=== Il/La ===
Gender-dependent and vowel-dependent with special cases
Gender-dependent and vowel-dependent with special cases
* If the next word is tagged with [male], or does not have a gender tag:
* If the next word is tagged with <code>[male]</code>, or does not have a gender tag:
** If the next word also begins with a vowel, except i+vowel, it becomes l'
** If the next word also begins with a vowel, except i+vowel, it becomes <code>l'</code>
** Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/i + vowel, it becomes lo
** Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/i + vowel, it becomes <code>lo</code>
** Otherwise, it becomes il
** Otherwise, it becomes <code>il</code>
* If the next word is tagged with [female]:
* If the next word is tagged with <code>[female]</code>:
** If the next word also begins with a vowel, except i+vowel, it becomes l'
** If the next word also begins with a vowel, except i+vowel, it becomes <code>l'</code>
** Otherwise, it becomes la
** Otherwise, it becomes <code>la</code>
<pre>
<pre>
[il/la]
[il/la]
Line 119: Line 119:
=== I/Le ===
=== I/Le ===
Gender-dependent and vowel-dependent with special cases
Gender-dependent and vowel-dependent with special cases
* If the next word is tagged with [male], or does not have a gender tag:
* If the next word is tagged with <code>[male]</code>, or does not have a gender tag:
** Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/vowel, it becomes gli
** Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/vowel, it becomes <code>gli</code>
** Otherwise, it becomes i
** Otherwise, it becomes <code>i</code>
* If the next word is tagged with [female], it becomes le
* If the next word is tagged with <code>[female], it becomes <code>le</code>
<pre>
<pre>
[i/le]
[i/le]
Line 129: Line 129:
=== Uno/Una ===
=== Uno/Una ===
Gender-dependent and vowel-dependent with special cases
Gender-dependent and vowel-dependent with special cases
* If the next word is tagged with [male], or does not have a gender tag:
* If the next word is tagged with <code>[male]</code>, or does not have a gender tag:
** If the next word also begins with a vowel, except i+vowel, it becomes un
** If the next word also begins with a vowel, except i+vowel, it becomes <code>un</code>
** Otherwise, it becomes uno
** Otherwise, it becomes <code>uno</code>
* If the next word is tagged with [female]:
* If the next word is tagged with <code>[female]</code>:
** If the next word also begins with a vowel, except i+vowel, it becomes un'
** If the next word also begins with a vowel, except i+vowel, it becomes <code>un'</code>
** Otherwise, it becomes una
** Otherwise, it becomes <code>una</code>
<pre>
<pre>
[uno/una]
[uno/una]
Line 141: Line 141:
=== 은/는 ===
=== 은/는 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 은
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 는
* If the preceding word ends with a vowel, it becomes <code></code>
<pre>
<pre>
[은/는]
[은/는]
Line 149: Line 149:
=== 을/를 ===
=== 을/를 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 을
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 를
* If the preceding word ends with a vowel, it becomes <code></code>
<pre>
<pre>
[을/를]
[을/를]
Line 157: Line 157:
=== 이/가 ===
=== 이/가 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 이
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 가
* If the preceding word ends with a vowel, it becomes <code></code>
<pre>
<pre>
[이/가]
[이/가]
Line 165: Line 165:
=== 와/과 ===
=== 와/과 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 와
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 과
* If the preceding word ends with a vowel, it becomes <code></code>
<pre>
<pre>
[와/과]
[와/과]
Line 173: Line 173:
=== 으/로 ===
=== 으/로 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 으
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 로
* If the preceding word ends with a vowel, it becomes <code></code>
<pre>
<pre>
[으/로]
[으/로]
Line 181: Line 181:
=== 이/라면 ===
=== 이/라면 ===
Vowel-dependent
Vowel-dependent
* If the preceding word ends with a consonant, it becomes 이
* If the preceding word ends with a consonant, it becomes <code></code>
* If the preceding word ends with a vowel, it becomes 라면
* If the preceding word ends with a vowel, it becomes <code>라면</code>
<pre>
<pre>
[이/라면]
[이/라면]

Revision as of 19:42, 16 February 2024

This document is a guide to displaying dialogue text in PMDO.

Text Tester

This utility can be found in the Scripting tab of the dev panel:

Enter text into the textbox, and click on the “Dialogue” box to display a textbox with the dialogue.

Make sure that you are currently in a ground or dungeon map (Not the title screen!). You can jump to one of those maps by using F12 or F1+F12 respectively.

Text Tags

Color Text

Welcome to [color=#FFC663]Treasure Town[color]!


Pause Text

Ready,[pause=30] set,[pause=0] GO!

Speed Text

[speed=4.0]Fast as a Ninjask![speed=0.2] Slow as a Slowpoke...

Set Emote Text

[emote=Determined]You Slowpoke![emote=Worried] We're gonna be late now...

Sound Text

Look what sound I can make! [sound=Battle/_UNK_DUN_Water_Drop]Very cool, right? [sound=Battle/_UNK_DUN_Water_Drop,10]I can even go slower... like so.


Break Text into Multiple Windows

Curiosity killed the cat.[br]But satisfaction brought it back.


Scroll To Next Window

Curiosity killed the cat.[scroll]But satisfaction brought it back.


Call Script

I’m talking,[script=0] and as I talk someone emoted.

Call Setup

local function exclaim()
  SOUND:PlayBattleSE("EVT_Emote_Exclaim_2")
  GROUND:CharSetEmote(chara, "exclaim", 1)
end
UI:WaitShowDialogue("What's that![pause=0] A [script=0]shiny!", { exclaim })


Indefinite Articles

When shown in textboxes, these tags turn into different words depending on the word that comes before after it. Very important for translation.

All articles can be capitalized for when they're at the beginning of a sentence.

A/An

Vowel-dependent

  • If the next word begins with a consonant, it becomes a
  • If the next word begins with a vowel, it becomes an
[a/an]

El/La

Gender-dependent

  • If the next word is tagged with [male] or does not have a gender tag, it becomes el
  • If the next word is tagged with [female], it becomes la
[el/la]

Der/Die/Das

Gender-dependent

  • If the next word is tagged with [male] or does not have a gender tag, it becomes der
  • If the next word is tagged with [female], it becomes die
  • If the next word is tagged with [neutral], it becomes das
[der/die/das]

Ein/Eine/Einen

Gender-dependent

  • If the next word is tagged with [male] or does not have a gender tag, it becomes ein
  • If the next word is tagged with [female], it becomes eine
  • If the next word is tagged with [neutral], it becomes einen
[ein/eine/einen]

Ein/Eine/Ein

Gender-dependent

  • If the next word is tagged with [male] or does not have a gender tag, it becomes ein
  • If the next word is tagged with [female], it becomes eine
  • If the next word is tagged with [neutral], it becomes ein
[ein/eine/ein]

Il/La

Gender-dependent and vowel-dependent with special cases

  • If the next word is tagged with [male], or does not have a gender tag:
    • If the next word also begins with a vowel, except i+vowel, it becomes l'
    • Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/i + vowel, it becomes lo
    • Otherwise, it becomes il
  • If the next word is tagged with [female]:
    • If the next word also begins with a vowel, except i+vowel, it becomes l'
    • Otherwise, it becomes la
[il/la]

I/Le

Gender-dependent and vowel-dependent with special cases

  • If the next word is tagged with [male], or does not have a gender tag:
    • Otherwise, if the next word also begins x/y/z/s + consonant/gn/ps/pn/vowel, it becomes gli
    • Otherwise, it becomes i
  • If the next word is tagged with [female], it becomes le
[i/le]

Uno/Una

Gender-dependent and vowel-dependent with special cases

  • If the next word is tagged with [male], or does not have a gender tag:
    • If the next word also begins with a vowel, except i+vowel, it becomes un
    • Otherwise, it becomes uno
  • If the next word is tagged with [female]:
    • If the next word also begins with a vowel, except i+vowel, it becomes un'
    • Otherwise, it becomes una
[uno/una]

은/는

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes
[은/는]

을/를

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes
[을/를]

이/가

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes
[이/가]

와/과

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes
[와/과]

으/로

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes
[으/로]

이/라면

Vowel-dependent

  • If the preceding word ends with a consonant, it becomes
  • If the preceding word ends with a vowel, it becomes 라면
[이/라면]

Gender Tags

Place these tags before item or object names to influence indefinite cases above.

[male]
[female]
[neutral]

Special Characters

Use unicode escape characters to achieve special characters:

The total comes to 500\uE024. Will you pay?
Thanks! \u266A Please come again \u266A


Most special letters are placed in the Private Reserved Area:

Shop Prices: \uE100-\uE109

Type icons: \uE080-\uE092

Item icons: \uE0A0-\uE0B2

Button icons: \uF000-\uF029

There are many more than listed here, and more may be added with new control schemes…


Unown Font: \uE041-\uE05A

\uE03F

\uE021

If you shift the characters in your text by E000, you will automatically translate English letters to Unown. Make sure everything is capitalized.


Misc Icons:

  • \uE10A
  • \uE10B
  • \uE10C
  • \uE10D
  • \uE10E
  • \uE10F
  • \uE110
  • \uE111
  • \uE023
  • \uE024
  • \uE040