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

[v18] Boon's SwSh-Style Mark Ribbons

295
Posts
6
Years
    • Seen Aug 15, 2022
    Your script has issue. When player plays in Safari zone, it can't define 'field'.

    My suggest:
    change
    Code:
    def pbPrepareBattle(battle)
      mark_preparebattle(battle)
      $PokemonTemp.battle_weather = battle.field.defaultWeather
    end
    into
    Code:
    def pbPrepareBattle(battle)
      mark_preparebattle(battle)
      if battle.is_a?(PokeBattle_SafariZone)
        $PokemonTemp.battle_weather = battle.weather
      else
        $PokemonTemp.battle_weather = battle.field.defaultWeather
      end
    end

    Thanks for reading.
     

    Boonzeet

    Pokémon Secrets of the Ages Developer
    188
    Posts
    15
    Years
  • Your script has issue. When player plays in Safari zone, it can't define 'field'.

    My suggest:
    change
    Code:
    def pbPrepareBattle(battle)
      mark_preparebattle(battle)
      $PokemonTemp.battle_weather = battle.field.defaultWeather
    end
    into
    Code:
    def pbPrepareBattle(battle)
      mark_preparebattle(battle)
      if battle.is_a?(PokeBattle_SafariZone)
        $PokemonTemp.battle_weather = battle.weather
      else
        $PokemonTemp.battle_weather = battle.field.defaultWeather
      end
    end

    Thanks for reading.

    We could probably just check if battle.field is defined. I'd want to avoid using battle.weather, as the player could influence Ribbons by using weather moves. Thanks for spotting this - I've fixed the main script
     
    163
    Posts
    7
    Years
    • Seen yesterday
    Hi, Thank you very much for sharing this script.

    I'm trying to incorporate the assignment of a nickname for each ribbon in combat but in V20.1 version.

    Do you know how I could do it, are there any plans to update this script?

    Thank you very much for your work.
     
    Back
    Top