• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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

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