add 3 choice dialogue to vasu
This commit is contained in:
@@ -62,6 +62,10 @@ Sprite_Vasu_Prep:
|
|||||||
|
|
||||||
LDA.b #$80 : STA.w SprDefl, X
|
LDA.b #$80 : STA.w SprDefl, X
|
||||||
|
|
||||||
|
LDA.w SprSubtype, X : BNE +
|
||||||
|
LDA.b #$02 : STA.w SprAction, X
|
||||||
|
+
|
||||||
|
|
||||||
PLB
|
PLB
|
||||||
RTL
|
RTL
|
||||||
}
|
}
|
||||||
@@ -76,16 +80,41 @@ Sprite_Vasu_Main:
|
|||||||
JSL UseImplicitRegIndexedLocalJumpTable
|
JSL UseImplicitRegIndexedLocalJumpTable
|
||||||
|
|
||||||
dw Vasu_Idle
|
dw Vasu_Idle
|
||||||
|
dw Vasu_MessageHandler
|
||||||
|
|
||||||
|
dw Error_Idle
|
||||||
|
|
||||||
Vasu_Idle:
|
Vasu_Idle:
|
||||||
{
|
{
|
||||||
%PlayAnimation(0,1,20)
|
%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
|
RTS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
; =========================================================
|
; =========================================================
|
||||||
|
|
||||||
Sprite_Vasu_Draw:
|
Sprite_Vasu_Draw:
|
||||||
@@ -165,6 +194,8 @@ Sprite_Vasu_Draw:
|
|||||||
db $02, $02
|
db $02, $02
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =========================================================
|
||||||
|
|
||||||
Sprite_Error_Draw:
|
Sprite_Error_Draw:
|
||||||
{
|
{
|
||||||
JSL Sprite_PrepOamCoord
|
JSL Sprite_PrepOamCoord
|
||||||
|
|||||||
Reference in New Issue
Block a user