********** KEEN'S BEHAVIORS ********** Behaviors are references to the basic code of a sprite; what a sprite does when it's just sitting around doing nothing. (Sphereful head towards Keen, Korath walk...) When a sprite is behaving (Ha ha.) it can do other things, like colide with tiles and sprites. As such this section can change how a sprite behaves in much the same way as the actions sections, the difference being that actions are animation dependent, for example if the Sphereful's actions are patched to tat of a Korath, after animating the Sphere will permanently become a Korath, whereas if its behavior is changed it will still look like an Sphereful, but behave like a Korath only when you want it to. Using this section you can make sprites act like other sprites for certain periods of time. This can be useful if you want your sprite to act 'out of the box', such as having a Slicestar head toward Keen (Sphereful behavior) Note that if you use other sections such as the seeking Keen section to change sprite behaviors, the change will affect ALL sprites you patch to use that behavior. Beware though that sometimes a behavior can permanently change a sprite's type. The only way to avoid this is through basic trial-and-error, eventually you will get a 'feel' for what you can and can't do with sprite behaviors. For example, many sprites use their 'walking' behavior to randomly become something else, such as a shooting or sitting sprite. Avoid these if possible. Note that many sprites use a random behavior only once per 'cycle' (The Shikadi Master only uses his standing behavior once in 4 frames.) This reduces memory load in-game, but means that if you want to double the chance of something happening, you simply have to add the behavior to another frame. (Or change the nature of things, make one animation frame last much longer, then your sprite will have a 'search' animation in its sitting loop where it is likely to go after Keen.) Following is a list of all behaviors followed by a list of Keen's behaviors to patch. To patch simply replace on action with the action you want the sprite to use. ### #How Keen [And sprites] can act: ### $00000000L #Nothing $090B1710RL #Fall $0CCB0654RL #Map Keen wave $0CCB0695RL #Map Keen move $0CCB0A69RL #Map Keen $0CCB10DARL #Keen's shot $0CCB12F5RL #Open door $0AAF02FARL #Keen go into doors 1 $0AAF0312RL #Keen go into doors 2 $0AAF0917RL #Keen go into doors 3 (Check to see if door is exit to level, $B1B1) $0AAF032BRL #Platform Keen $0AAF046DRL #Normal Keen (Wait for keypress) $0AAF0531RL #Reading Keen (Sit and stop reading at keypress) $0AAF056FRL #Keen look up $0AAF05B7RL #Keen look down $0AAF0701RL #Keen walk $0AAF08ADRL #Keen open door $0AAF0917RL #Keen go into doors 3 $0AAF09BARL #Keen flip switch (Activate switch tile) $0AAF0B62RL #Keen place gem $0AAF1001RL #Keen on pole $0AAF10B7RL #Keen move up pole $0AAF0C89RL #Keen jump/fall $0AAF0E23RL #Keen pogo $0AAF0DF7RL #Keen start pogo $0AAF114ARL #Keen move down pole $0AAF11FFRL #Keen stops looking down $0AAF120ERL #Keen move up from ledgegripping 1 $0AAF12C3RL #Keen shoot (Spawnshot) $0AAF1478RL #Keen move up from ledgegripping 2 $0AAF1497RL #Keen move up from ledgegripping 3 $0AAF14C2RL #Keen move up from ledgegripping 4 $0AAF14CDRL #Keen move up from ledgegripping 5 $0AAF14E7RL #Keen dies (Didn't make it window when falls offscreen) ### #What Keen uses: ### ### #Standing and walking ### #Standing %patch $30BD8 $0AAF046DRL #Normal Keen #Standing on platforms %patch $30BF6 $0AAF032BRL #Platform Keen %patch $312C2 $0AAF0701RL #Keen walk %patch $312E0 $0AAF0701RL #Keen walk %patch $312FD $0AAF0701RL #Keen walk %patch $3131C $0AAF0701RL #Keen walk ### #Bored ### Bored, look up %patch $30C14 $0AAF046DRL #Normal Keen #Shrug-blink %patch $30C32 $0AAF046DRL #Normal Keen %patch $30C50 $0AAF046DRL #Normal Keen %patch $30C6D $0AAF046DRL #Normal Keen %patch $30C8C $0AAF046DRL #Normal Keen %patch $30CAA $0AAF046DRL #Normal Keen %patch $30CC8 $0AAF046DRL #Normal Keen #Start reading %patch $30CE6 $00000000L #Nothing %patch $30D04 $00000000L #Nothing %patch $30D22 $00000000L #Nothing %patch $30D40 $00000000L #Nothing #Read %patch $30D5D $0AAF0531RL #Reading Keen %patch $30D7C $0AAF0531RL #Reading Keen %patch $30D9A $0AAF0531RL #Reading Keen #Stop reading %patch $30DB8 $00000000L #Nothing %patch $30DD6 $00000000L #Nothing %patch $30DF4 $00000000L #Nothing ### #Looking ### #Look up %patch $30E12 $0AAF056FRL #Keen look up %patch $30E30 $0AAF056FRL #Keen look up #Look down %patch $30E4D $0AAF05B7RL #Keen look down (Start) %patch $30E6C $0AAF05B7RL #Keen look down (Screen moves) %patch $30E8A $0AAF05B7RL #Keen look down (Keep looking) %patch $30EA8 $00000000L #Nothing (Stop) %patch $30EC6 $0AAF11FFRL #Keen stops looking down (Screen moves) %patch $30EE4 $00000000L #Nothing (Stop) ### #Dead ### %patch $30F02 $0AAF14E7RL #Keen dies (Sprawled) %patch $30F20 $0AAF14E7RL #Keen dies (Clutched) ### #Shooting while standing ### #l/r %patch $30F3D $0AAF12C3RL #Keen shoot %patch $30F5C $00000000L #Nothing #Up %patch $30F7A $0AAF12C3RL #Keen shoot %patch $30F98 $00000000L #Nothing ### #On poles ### %patch $3111D $0AAF1001RL #Keen on pole %patch $3113C $0AAF10B7RL #Keen move up pole %patch $3115A $0AAF10B7RL #Keen move up pole %patch $31178 $0AAF10B7RL #Keen move up pole %patch $31196 $0AAF114ARL #Keen move down pole %patch $311B4 $0AAF114ARL #Keen move down pole %patch $311D2 $0AAF114ARL #Keen move down pole %patch $311F0 $0AAF114ARL #Keen move down pole #Shoot l/r %patch $3120D $0AAF12C3RL #Keen shoot %patch $3122C $00000000L #Nothing #Shoot u %patch $3124A $0AAF12C3RL #Keen shoot %patch $31268 $00000000L #Nothing #Shoot d %patch $31286 $0AAF12C3RL #Keen shoot %patch $312A4 $00000000L #Nothing ### #Pogoing ### %patch $3133A $0AAF0DF7RL #Keen start pogo %patch $31358 $0AAF0E23RL #Keen pogo %patch $31376 $0AAF0E23RL #Keen pogo ### #Jumping ### %patch $31394 $0AAF0C89RL #Keen jump/fall %patch $313B2 $0AAF0C89RL #Keen jump/fall %patch $313D0 $0AAF0C89RL #Keen jump/fall %patch $313ED $0AAF0C89RL #Keen jump/fall #Shoot l/r in air %patch $3140C $090B1710RL #Fall %patch $3142A $0AAF12C3RL #Keen shoot u/l/r %patch $31448 $090B1710RL #Fall #Shoot u in air %patch $31466 $090B1710RL #Fall %patch $31484 $0AAF12C3RL #Keen shoot u/l/r %patch $314A2 $090B1710RL #Fall #Shoot d in air %patch $314C0 $090B1710RL #Fall %patch $314DD $0AAF12C3RL #Keen shoot u/l/r %patch $314FC $090B1710RL #Fall ### #Misc ### #Flip switch %patch $30FB6 $0AAF09BARL #Keen flip switch %patch $30FD4 $00000000L #Nothing #Place gem %patch $30FF2 $0AAF0B62RL #Keen place gem %patch $31010 $0AAF08ADRL #Keen open door #Enter doors %patch $3102D $00000000L #Nothing %patch $3104C $00000000L #Nothing %patch $3106A $0AAF02FARL #Keen go into doors 1 %patch $31088 $0AAF0312RL #Keen go into doors 2 %patch $310A6 $0AAF02FARL #Keen go into doors 1 %patch $310C4 $0AAF0312RL #Keen go into doors 2 %patch $310E2 $0AAF0917RL #Keen go into doors 3 %patch $31100 $0AAF0917RL #Keen go into doors 3 #Ledgegripping %patch $3151A $00000000L #Nothing (Hanging) %patch $31538 $0AAF120ERL #Keen move up from ledgegripping 1 %patch $31556 $0AAF1478RL #Keen move up from ledgegripping 2 %patch $31574 $0AAF1497RL #Keen move up from ledgegripping 3 %patch $31592 $0AAF14C2RL #Keen move up from ledgegripping 4 %patch $315B0 $0AAF14CDRL #Keen move up from ledgegripping 5 %patch $315CD $00000000L #Nothing #Keen's shot and shot smash %patch $31852 $0CCB10DARL #Keen's shot %patch $31870 $0CCB10DARL #Keen's shot %patch $3188D $0CCB10DARL #Keen's shot %patch $318AC $0CCB10DARL #Keen's shot %patch $318CA $00000000L #Nothing %patch $318E8 $00000000L #Nothing ### #Map Keen ### %patch $316CA $0CCB0A69RL #Map Keen sit %patch $316E8 $0CCB0654RL #Map Keen wave %patch $31706 $0CCB0654RL #Map Keen wave %patch $31724 $0CCB0654RL #Map Keen wave %patch $31742 $0CCB0654RL #Map Keen wave %patch $31760 $0CCB0654RL #Map Keen wave %patch $3177D $0CCB0695RL #Map Keen move (End waving) %patch $3179C $0CCB0695RL #Map Keen move ### #Map K flags ### %patch $317DA $00000000L #Nothing %patch $317F8 $00000000L #Nothing %patch $31816 $00000000L #Nothing %patch $31834 $00000000L #Nothing