Ver Mensaje Individual
  #2  
13/09/2017
Predeterminado Re: Problema con Nuevo tipo de Encuentro
en esta parte estas mal

Código:
   def isGrass?
    return false if  
@Den
sity==nil
    return (@enctypes[EncounterTypes::Land] ||
            @enctypes[EncounterTypes::LandMorning] ||
            @enctypes[EncounterTypes::LandDay] ||
            @enctypes[EncounterTypes::LandNight] ||
            @enctypes[EncounterTypes::PastoOscuro] ||
            @enctypes[EncounterTypes::BugContest]) ? true : false
  end
tienes que definir tu propio tipo de encuentro:

Código:
  def DarkGrass?
    return false if  
@Den
sity==nil
    return (@enctypes[EncounterTypes::PastoOscuro]) ? true : false
  end
y en este agregarlo tambien

Código:
  def pbEncounterType
    if $PokemonGlobal && $PokemonGlobal.surfing
      return EncounterTypes::Water
    elsif self.isCave?
      return EncounterTypes::Cave
    elsif self.DarkGrass?
     return EncounterTypes::PastoOscuro
    elsif self.isGrass?
      time=pbGetTimeNow
      enctype=EncounterTypes::Land
 pbGetTerrainTag($game_player)==PBTerrain::DarkGrass
      enctype=EncounterTypes::LandNight if self.hasEncounter?(EncounterTypes::LandNight) && PBDayNight.isNight?(time)
      enctype=EncounterTypes::LandDay if self.hasEncounter?(EncounterTypes::LandDay) && PBDayNight.isDay?(time)
      enctype=EncounterTypes::LandMorning if self.hasEncounter?(EncounterTypes::LandMorning) && PBDayNight.isMorning?(time)
      if pbInBugContest? && self.hasEncounter?(EncounterTypes::BugContest)
        enctype=EncounterTypes::BugContest
      end
      return enctype
    end
    return -1
  end
y agregarlo en la seccion de PBEnvironment

Código:
module PBEnvironment
DarkGrass = 17

Espero me entiendas...
Pokemon Noche