• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Water time based encounters

  • 43
    Posts
    12
    Years
    • Seen Jun 9, 2016
    My question is how do I set Water encounters so they are different depending on the time?
    I have read the tutorial,but it only adds a land encounter.Can someone tell me what to do to set pokemon to appear when you surf during the day/morning/night.
     
    You will need to create new Water methods, called WaterNight, WaterDusk (whatever).
    Then follow how all EncounterTypes::Water work... Adding encounter type chances... Adding it to the isWater? def, etc. etc.

    Everything you've read is exactly how to do it... The wiki is not wrong... It just uses Land as an example... Then you will need something like this line:

    enctype=EncounterTypes::WaterNight if self.hasEncounter?(EncounterTypes::WaterNight) && PBDayNight.isNight?(time)

    To make it complete.
    It's quite a complicated thing to do, but once you've done it, it's easy enough.
     
    Last edited:
    I followed all the instructions and I apparently hava a syntax error here:

    if thisenc && (thisenc[1][EncounterTypes::Land] ||
    thisenc[1][EncounterTypes::LandMorning] ||
    thisenc[1][EncounterTypes::LandDay] ||
    thisenc[1][EncounterTypes::BugContest] ||
    thisenc[1][EncounterTypes::LandNight]) &&
    thisenc[1][EncounterTypes::Cave] ||
    thisenc[1][EncounterTypes::WaterDay])

    I imagined since its a cave it should be placed there. What did I do wrong.

    There is no isWater
     
    Last edited:
    That gives no info at all...

    What's the error?

    Immediately, I notice, you put that where you don't need to... I said
    Nickalooose said:
    Then follow how all EncounterTypes::Water work...
    Do you see any water encounter types where you put that?
    What have you done so far?
     
    I figured it out! Thank you very much.
    Now is it possible to set weather encounters.
     
    Of course it is, it's possible to change encounters depending on whether your riding the bicycle... It's exactly the same way... Instead of setting the encounter to be a night or day one... Just set it as weather, rain or sun etc.
     
    Well the encounters are recognised by the game but not the editor how do I fix that.
     
    Back
    Top