Liv's Swamp Lotus Encounter

Discussion in 'General Modification' started by Cerulean the Blue, Aug 19, 2005.

Remove all ads!
  1. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    So far I've figured out that you can only get the swamp lotus if you have a random encounter in map 5072, and only if you haven't had an encounter there before. Which map you have a random encounter on is determined by the following function from random_encounter.py:

    Code:
    def get_map_from_terrain( terrain ):
    	if (terrain & TERRAIN_SCRUB):
    		map = 5070
    	elif (terrain & TERRAIN_FOREST):
    		map = 5071
    	elif (terrain & TERRAIN_SWAMP):
    		map = 5072
    	else:	# TERRAIN_RIVERSIDE
    		map = 5073
    	if (terrain & TERRAIN_F_ROAD):
    		map = map + 4
    	return map
    My questions is, where are the values for "terrain" retrieved from? Do these values depend on where your party is in the world map when traveling, or is there a random range of values that is dependent on where you are coming from and going to? If anyone has any insight on this, your help would be greatly appreciated.
     
  2. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    I take it no one has any imput on this.
     
  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,746
    Likes Received:
    375
    Its a string in Temple.dll at 10285724.
     
  4. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    Last night I found a .jpg in one of the data files that appears to be the world map color coded for terrain type. I might play around with that. I also found the shop map, but it appears to have been conscripted to serve as the scrolling temple wall background for the game start menu.
     
Our Host!