add 3 choice dialogue to vasu

This commit is contained in:
scawful
2024-07-08 11:18:39 -04:00
parent 4406c3cbc2
commit 9cb6d4494e

View File

@@ -62,6 +62,10 @@ Sprite_Vasu_Prep:
LDA.b #$80 : STA.w SprDefl, X
LDA.w SprSubtype, X : BNE +
LDA.b #$02 : STA.w SprAction, X
+
PLB
RTL
}
@@ -76,16 +80,41 @@ Sprite_Vasu_Main:
JSL UseImplicitRegIndexedLocalJumpTable
dw Vasu_Idle
dw Vasu_MessageHandler
dw Error_Idle
Vasu_Idle:
{
%PlayAnimation(0,1,20)
%ShowSolicitedMessage($00A9) : BCC .didnt_talk
%GotoAction(1)
.didnt_talk
RTS
}
Vasu_MessageHandler:
{
%PlayAnimation(0,1,20)
LDA.w MsgChoice : CMP.b #$02 : BEQ .appraise_rings
CMP.b #$01 : BEQ .explain_rings
; Player said nevermind.
%GotoAction(0)
RTS
.explain_rings
.appraise_rings
%ShowUnconditionalMessage($00AA)
%GotoAction(0)
RTS
}
Error_Idle:
{
%PlayAnimation(0,1,24)
RTS
}
}
; =========================================================
Sprite_Vasu_Draw:
@@ -165,6 +194,8 @@ Sprite_Vasu_Draw:
db $02, $02
}
; =========================================================
Sprite_Error_Draw:
{
JSL Sprite_PrepOamCoord