List of Opcodes: Difference between revisions
Happylappy (talk | contribs) message_SwitchMenu bare minimum |
Deltaflare (talk | contribs) |
||
| Line 7,612: | Line 7,612: | ||
|} | |} | ||
=== 0xaa - message_SwitchMenu === | === 0xaa - message_SwitchMenu === | ||
Enclose within a switch case, and generates a dialogue prompt with the options present in subsequent "case menu():" | Enclose within a switch case, and generates a dialogue prompt with the options present in subsequent "case menu("text"):" | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 7,633: | Line 7,633: | ||
|} | |} | ||
=== 0xab - message_SwitchMenu2 === | === 0xab - message_SwitchMenu2 === | ||
Same as message_SwitchMenu, but it also takes an argument for a bitfield, and will only display dialogue options for which the corresponding bit is enabled. | Same as message_SwitchMenu, but it also takes an argument for a bitfield, and will only display dialogue options for which the corresponding bit is enabled (set to 1). | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 7,659: | Line 7,659: | ||
|} | |} | ||
=== 0xac - message_SwitchMonologue === | === 0xac - message_SwitchMonologue === | ||
< | Structured similarly to a switch statement. Typically uses <code>$HERO_TALK_KIND</code> as an argument, and uses multiple cases to display certain dialogue strings. | ||
<code>case 4:</code> is used when the player is male or genderless | |||
<code>case 5:</code> used when the player is female | |||
<code>default:</code> used when <code>$HERO_TALK_KIND</code>'s Talk Group has a value other than 4 or 5 | |||
This opcode supports displaying a portrait. No sound effect is used when text is scrolling. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 7,675: | Line 7,683: | ||
|} | |} | ||
=== 0xad - message_SwitchTalk === | === 0xad - message_SwitchTalk === | ||
< | Same as _SwitchMonologue, but typically uses <code>$PARTNER_TALK_KIND</code> as an argument, and the cases used vary. | ||
Of the vanilla game partner options: | |||
<code>case 1:</code> used if Squirtle, Tododile, Chimchar, Meowth, or Munchlax | |||
<code>case 2:</code> used for all other male partners | |||
<code>case 3:</code> used for all female partners | |||
<code>default:</code> used when <code>$PARTNER_TALK_KIND</code>'s Talk Group has a value other than 1 or 2 | |||
This opcode supports displaying a portrait. The [[sound effect]] 16133 will emit from the each character scrolling in the text. | |||
{| class="wikitable" | {| class="wikitable" | ||