• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
10
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.
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    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:
    43
    Posts
    10
    Years
    • Seen Jun 9, 2016
    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:

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    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?
     
    43
    Posts
    10
    Years
    • Seen Jun 9, 2016
    I figured it out! Thank you very much.
    Now is it possible to set weather encounters.
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    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.
     
    43
    Posts
    10
    Years
    • Seen Jun 9, 2016
    Well the encounters are recognised by the game but not the editor how do I fix that.
     
    Back
    Top