You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Implement talker events [commit 2] (#30)
This commit is contained in:
@@ -459,7 +459,7 @@ CheckTrainerOrTalkerEvent:
|
||||
call CheckTrainerBattleOrTalkerPrompt
|
||||
jr nc, .nope
|
||||
|
||||
ld a, [wTrainerOrTalkerIsTalker]
|
||||
ld a, [wSeenTrainerOrTalkerIsTalker]
|
||||
and a ; cp FALSE
|
||||
ld a, PLAYEREVENT_SEENBYTRAINER
|
||||
jr z, .done
|
||||
|
||||
@@ -163,7 +163,7 @@ ScriptCommandTable:
|
||||
dw Script_reloadmapafterbattle ; 60
|
||||
dw Script_catchtutorial ; 61
|
||||
dw Script_trainertext ; 62
|
||||
dw Script_trainerflagaction ; 63
|
||||
dw Script_trainerortalkerflagaction ; 63
|
||||
dw Script_winlosstext ; 64
|
||||
dw Script_scripttalkafter ; 65
|
||||
dw Script_endifjustbattled ; 66
|
||||
@@ -685,10 +685,10 @@ Script_scripttalkafter:
|
||||
ld b, a
|
||||
jp ScriptJump
|
||||
|
||||
Script_trainerflagaction:
|
||||
Script_trainerortalkerflagaction:
|
||||
xor a
|
||||
ldh [hScriptVar], a
|
||||
ld hl, wTempTrainerEventFlag
|
||||
ld hl, wTempTrainerEventFlag ; wTempTalkerEventFlag
|
||||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
|
||||
Reference in New Issue
Block a user