Entering and exiting water on map

Completed patches for Keen4.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Entering and exiting water on map

Post by levellass »

The following patches can be used to make the water deadly or a repulsive barrier or somesuch.

There are four tile types that are used on the map for land/water boundaries. Keen will say something if he has no wetsuit, or perform an action if he does (If Keen is on the 'wrong side' of the water/land boundary he will be 'bounced back' onto land or water, like a force field.)

There are two lists of actions, the first for moving from water to land (Which also contains entries apparently unused for if Keen had no wetsuit, so he'd walk away from water as well as saying something.) and another for moving from water to land. Since there are four types of tile, (And one type is not used in-game.) you can change one or more to 'kill Keen' if he touches them (With a wetsuit!) which makes for interesting maps. (The game will say you didn't make it past the Shadowlands, take a life and set you back at the Shadowlands start.)

Code: Select all

#What to do when moving from water to land on map:
#Values 0-8 ($08 kills Keen on map)
%patch $302B6 $04 $00 #Tile type 0D (Water up, land down) [Walk down]
              $05 $00 #Unused [Walk down]
              $06 $00 #Tile type 0E (Water right, land left) [Walk left]
              $07 $00 #Unused [Walk left]
              $00 $00 #Tile type 0B (Water down land up) [Walk up]
              $01 $00 #Unused [Walk up]
              $02 $00 #Tile type 0C (Water left, land right) [Walk right]
              $03 $00 #Unused [Walk right]
#What to do when moving from land to water on map:
%patch $30456 $04 $00 #Tile type 0B (Water down land up) [Swim down]
              $06 $00 #Tile type 0C (Water left, land right) [Swim right]
              $00 $00 #Tile type 0D (Water up, land down) [Swim down]
              $02 $00 #Tile type 0E (Water right, land left) [Swim left]
Post Reply