Patch:E N D cheat

From KeenWiki
Jump to: navigation, search

The END cheat wins the game when activated wins the game and shows the ending sequence


Complete cheat code

Below is the complete END cheat code. Notice that three keys are needed to activate it, E, N and D. (See Patch:Scancodes.) When the cheat is successfully activated in Keen 4 two things occur. (Line 2) Firstly the number of Oracle Council Members saved is set to 7 (1 less than needed to win.) and the level state is set to 3 (Run the saved Council member sequence.) In Keen 5 the cheat is slightly simpler, it sets the level state to 'win the game'

Patch: Keen 4
#Complete END cheat code
%patch $9122 $83 $3E $C66BW $00 $74 $1A $83 $3E $C6A9W $00 $74 $13 $83 $3E $C687W $00 $74 $0C $C7 $06 $7A5EW $0007W $C7 $06 $7A70W $0003W

Patch: Keen 5
#Complete END cheat code
%patch $908D $83 $3E $BCD3W $00 $74 $14 $83 $3E $BD11W $00 $74 $0D $83 $3E $BCEFW $00 $74 $06 $C7 $06 $6F70W $000FW


Keys that activate cheat

This patch alters what key activates the win level cheat. (See Patch:Scancodes.) By default this is 'E, N, D' Setting any of these to $C647 will disable the cheat.

Patch: Keen 4
#Win game keys
%patch $9124 $C66BW
#E
%patch $912B $C6A9W
#N
%patch $9132 $C687W
#D

Patch: Keen 5
#Win game keys
%patch $908F $BCD3W
#E
%patch $9096 $BD11W
#N
%patch $909D $BCEFW
#D


Remove keys from cheat

Each line in this patch removes one key from the END cheat activation. All three should NOT be disabled at once. Indeed even if only one key remains (unaltered) it will interfere with a cheat, F10 E, F10 N, or F10 D.

When applying this to the complete code above, each of these $90 $90 lines replaces on $74 $xx.

Patch: Keen 4
#Remove keys from END cheat
%patch $9127 $90 $90
#E
%patch $912E $90 $90
#N
%patch $9135 $90 $90
#D

Patch: Keen 5
#Remove keys from END cheat
%patch $9092 $90 $90
#E
%patch $9099 $90 $90
#N
%patch $90A0 $90 $90
#D


Disable cheat

This completely disables the cheat.

Patch: Keen 4
#Disable END cheat code
%patch $9122 $EB $1F

Patch: Keen 5
#Disable END cheat code
%patch $908D $EB $19