Prev: 9034 Up: Map Next: 90D2
9076: Action Shoot
Action_Shoot 9076 LD A,$19
9078 CALL $9C7B
907B LD HL,$B121 HL="You are not carrying the bow"
907E JP NC,PrintMsg
9081 CALL $914A
9084 CALL $9D44
9087 LD A,$0F
9089 LD ($B6E7),A
908C LD A,($B6EA)
908F CP $46
9091 JR Z,Action_Shoot_0
9093 LD A,($B6E8)
9096 CP $3C
9098 LD HL,$B127 HL="the arrow misses[0x09] by a wide margin".
909B JP Z,PrintMsg
909E LD A,$08
90A0 CALL GetRandomNum
90A3 CP $03
90A5 JP C,PrintMsg
Action_Shoot_0 90A8 LD IX,$C4EA
90AC LD A,($B6E8)
90AF CP $1A
90B1 JR Z,Action_Shoot_1
90B3 LD (IX+$01),$FF
Action_Shoot_1 90B7 LD HL,$B136 HL="the arrow{5} hits[0x07][0x15]".
90BA CALL PrintMsg
90BD LD IX,($B708)
90C1 CALL DisplayExits_10
90C4 JP NZ,Action_Attack_17
90C7 LD A,($B6E8)
90CA CALL $977F
90CD LD A,$06
90CF JP DisplayExits_3
Prev: 9034 Up: Map Next: 90D2