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

[Scripting Question] Bonding events?

  • 3
    Posts
    3
    Years
    Would be possible to give a value that increases with fights to a pokemon and once that value reaches a specific number display an in-game cinematic?
     
  • 188
    Posts
    9
    Years
    • Seen May 16, 2024
    You could simply add and define an attribute to the PokeBattle_Pokemon class that counts the number of fights the Pokémon object has had or won; or you could simply increase the Pokémon's happiness whenever said-Pokémon is sent out or defeats an opponent. The latter case can make it easier for Pokémon who are programmed to evolve by happiness. You can also use happiness for affection-related effects e.g. 20% boost in XP gain; probability of the Endure effect happening (increases at higher happiness levels); probability of an opponent's attack automatically missing or the Pokémon curing itself of a status affliction; probability of the Pokémon's attack scoring a critical hit.
     
    Back
    Top