Implement talker events [commit 1] (#30)

This commit is contained in:
xCrystal
2023-11-28 13:59:36 +01:00
parent 93dad5959f
commit 88b6810a18
13 changed files with 134 additions and 29 deletions

View File

@@ -89,6 +89,7 @@ DEF RETVAR_EXECUTE EQU 2 << 6
const PLAYEREVENT_WHITEOUT
const PLAYEREVENT_HATCH
const PLAYEREVENT_JOYCHANGEFACING
const PLAYEREVENT_SEENBYTALKER
DEF NUM_PLAYER_EVENTS EQU const_value
; PlayerMovementPointers indexes (see engine/overworld/events.asm)
@@ -137,7 +138,7 @@ DEF NUM_BGEVENTS EQU const_value
const OBJECTTYPE_SCRIPT
const OBJECTTYPE_ITEMBALL
const OBJECTTYPE_TRAINER
const OBJECTTYPE_3
const OBJECTTYPE_TALKER
const OBJECTTYPE_4
const OBJECTTYPE_5
const OBJECTTYPE_6
@@ -188,6 +189,7 @@ DEF NUM_FLOORS EQU const_value
; Emotes indexes (see data/sprites/emotes.asm)
const_def
const EMOTE_SHOCK
const EMOTE_TALK
const EMOTE_QUESTION
const EMOTE_HAPPY
const EMOTE_SAD

View File

@@ -45,3 +45,13 @@ DEF CONTEXT_USE EQU 1 << CONTEXT_USE_F
const TRAINERTYPE_MOVES
const TRAINERTYPE_ITEM
const TRAINERTYPE_ITEM_MOVES
; talker events (from talker macro and high bit of wTempTalkerType)
DEF TALKER_OPTIONAL EQU %0
DEF TALKER_MANDATORY EQU %1
; talker types (from talker macro and low seven bits of wTempTalkerType)
const_def
const TALKERTYPE_TEXT
const TALKERTYPE_MODAL_TEXT
const TALKERTYPE_SCRIPT