• 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] Forcing evolution and order of trainer pokemon

  • 3
    Posts
    7
    Years
    • Seen Jun 14, 2016
    Dear Community,

    I am working on a fangame for over 2 years now and I always used the forums to read important stuff.
    Now I registered because I have 2 questions which I can not solve on my own.
    I hope you can help me out :)

    1.)
    I've made a custom evolution for Hitmonchan. In my cave there is a special statue which shall evolve a Hitmonchan with level 40 or higher to
    Hitmochan-2.
    I know how to check a specific pokemon. But I dont know how to also check its level and how to force its evolution in an event.
    Can you help me out?
    Credit will be given for sure!

    2.)
    This problem was discussed already in the forums: I want the trainers to use their pokemon in the right order.
    For me it is annoying when they change the order.

    I found this here in the forums and tried it out:


    def pbDefaultChooseNewEnemy(index,party)
    enemies=[]
    length = party.length-1
    for i in 0..length
    if pbCanSwitchLax?(index,i,false)
    if i == length && $game_switches[1000]
    if enemies.length == 0
    enemies.push(i)
    end
    else
    enemies.push(i)
    end
    end
    end
    if enemies.length>0
    return pbChooseBestNewEnemy(index,party,enemies)
    end
    return -1
    end

    Now the trainers will not send their last pokemon out too early. It is fine.
    But the other pokemon will be random as well.
    Can I turn the function of sending the best pokemon out simply off?
    I have'nt find a solution yet.

    Help will be appreciated.
     
    Last edited by a moderator:
    Back
    Top