msg on bg script commands

This commit is contained in:
DizzyEggg
2025-06-19 10:59:07 +02:00
parent 03b05a4a31
commit 0b56ca5480
19 changed files with 164 additions and 159 deletions

View File

@@ -49,6 +49,9 @@
#define MSG_INSTANT(msg) { 0x32, 0, -1, 0, 0, msg }
#define MSG_NPC(id, msg) { 0x34, 0, id, 0, 0, msg } // ID is portrait id of the npc. -1 means no portrait
#define MSG_LETTER(msg) { 0x35, 0, -1, 0, 0, msg }
#define MSG_ON_BG(msg) { 0x37, 0, -1, 0, 0, msg } // Prints raw text on bg without any windows. Used for the intro portal messages. To advance the text player needs to press a button.
#define MSG_ON_BG2(msg) { 0x38, 0, -1, 0, 0, msg } // Identical to the above, used literally once for just a newline.
#define MSG_ON_BG_AUTO(u, msg) { 0x39, 0, u, 0, 0, msg } // Similar to the above, but the message appears and fades automatically, without any player's input. Used for narration text. The short argument isn't really used, but needs to be greater than 0.
// 3a: yes/no choice (only used for saving)
// 3b: uber command (conditional jump)
// 3c: unknown textbox-related cjump