• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

Money for Wild Battles, Erasing cut-scenes

  • 6
    Posts
    8
    Years
    • Seen Oct 23, 2017
    Hello together!
    I am new here. I searched for a while but i could not find what i am searching for yet; if it already exists, please lead me there.

    1. I would like the player to gain money for wild battles. For example 2*Baselevel+(baselevel/2)^2. Just tgainedMoney = Level of the beaten pokemon would work fine aswell. Can someone please tell me what i have to insert where?

    2. I would like to jump right into battle when a pokemon(wild) appears. So there must be a line somewhere, that starts the blink-cutscene stuff. How can i switch it off?
     
    1. In the section PokeBattle_Battle, there's a method called pbEndOfBattle. The first thing it does is calculates the amount of money earned in battle. There's a conditional that looks like this:
    if @opponent
    that checks to see if there is an opposing trainer defined. If not, it skips money calculation and goes straight to bonus money calculation (i.e. from Pay Day). You'll need to add an else block after it that calculates the amount of money gained from a wild pokemon (or set of wild pokemon if it's a wild double battle).

    2. Not 100% on this one, but in the section PField_Field in the method pbBattleAnimation, there's an if block that starts with
    if !handled
    then proceeds to go through different animations for starting battles. If you comment out some of the animations in there, it should skip them.
     
    It worked :D
    (if anyone ever wants to have the same thing: here is what i typed)

    i deleted the "end " in line 3989.

    else
    tmoney=0
    maxlevel=0
    for i in @party2
    next if !i
    maxlevel=i.level if maxlevel<i.level
    end
    tmoney+=maxlevel*4
    oldmoney=self.pbPlayer.money
    self.pbPlayer.money+=tmoney
    moneygained=self.pbPlayer.money-oldmoney
    if moneygained>0
    pbDisplayPaused(_INTL("{1} got ${2}\r\nfor winning!",self.pbPlayer.name,tmoney))
    end
    end

    Thanks!!
     
    I know :)
    But i added another end behind my code (already included), so nothing goes wrong. Thanks!
     
    Back
    Top