Encounters based on in ship or not.

It's here, I know it is, but somehow it's escaping me.

So the idea is:

if @vehicle == 1

   encounter_list == area1

end

This means, if you are in the ship, encounters will be pulled only from area 001. At least, that's the IDEA. I've succeeded in making it so encounters can happen while in vehicles, but I needs to be able to have a single area be where the encounters are pulled from while in the ship, no encounters in air ship, and every area if the player is in them EXCEPT area 1 while in the ship.

anyone know how to get that to happen, or knows a scrip that does just that?

def make_encounter_troop_id
    encounter_list = $game_map.encounter_list.clone
    for area in $data_areas.values
      encounter_list += area.encounter_list if in_area?(area)
    end
    if encounter_list.empty?
      make_encounter_count
      return 0
    end

##I swear, it should go right here!!!##
    return encounter_list[rand(encounter_list.size)]
  end

Original thread: https://forums.rpgmakerweb.com/threads/encounters-based-on-in-ship-or-not.19009/