ARTICLE: Changing the score of point items

Completed patches for Keen1.
Post Reply
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

ARTICLE: Changing the score of point items

Post by adurdin »

There are five point items each in Keen 1, 2, and 3. These have scores of 100, 200, 500, 1000, and 5000 points. You can change the score of any of these to be anywhere from -32,768 to +32,767. There are five words (2-byte, 4-hex-digit values), each of which specifies the score of one item. The offsets to patch for each of these are different in each episode, and are given in the table below. Note that when writing the patch file, you must write the score value in reverse order. See this article for more details on why this is.

Offsets for Point Item Scores

Code: Select all

Normal Score    Keen 1 Offset    Keen 2 Offset    Keen 3 Offset
    100            $15078           $19FC4           $1C085
    200            $1507A           $19FC6           $1C087
    500            $15076           $19FC2           $1C083
   1000            $1507C           $19FC8           $1C089
   5000            $1507E           $19FCA           $1C08B
For example, if we wanted to change the teddy bear in Keen 2 to give 20,000 points ($4E20 in hex), we would use the following:

Code: Select all

%ext ck2
%version 1.31

%patch $19FCA $20 $4E

%end
Post Reply