• 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.

Evolution method for when holding an item

CDQ

Glorious Young Gentleman
  • 20
    Posts
    9
    Years
    I'd like to know how I can make a method be just simply holding an item, rather than "HoldItemDay" or "HoldItemNight", I'd like to know scripts for; "HoldItem", "HoldItemEvening", "HoldItemAfternoon"

    The only important one is "HoldItem", if you are feeling generous, you can give me the last two, thanks
     
  • 1,224
    Posts
    10
    Years
    You can see the check for DayHoldItem is
    Code:
    return poke if pokemon.item==level && PBDayNight.isDay?(pbGetTimeNow)
    so just checking for an item would be as simple as removing the last part
    Code:
    return poke if pokemon.item==level

    Checking for evening is as simple as
    Code:
    return poke if pokemon.item==level && PBDayNight.isEvening?(pbGetTimeNow)
    Not that essentials defines evening here as between 5pm and 8 pm
     

    Maruno

    Lead Dev of Pokémon Essentials
  • 5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    You can imagine that, between them, day and night cover all 24 hours. So use both! No need to do any coding at all.

    Code:
    Evolutions=NEWMON,DayHoldItem,POTION,NEWMON,NightHoldItem,POTION
     

    Florio

    Pokemon Crimson Skies Owner
  • 391
    Posts
    15
    Years
    You can imagine that, between them, day and night cover all 24 hours. So use both! No need to do any coding at all.

    Code:
    Evolutions=NEWMON,DayHoldItem,POTION,NEWMON,NightHoldItem,POTION

    I was just about to suggest this, lol.
     
    Back
    Top