• 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.
  • 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Saving money

Skystrike

[i]As old as time itself.[/i]
  • 1,629
    Posts
    16
    Years
    How can I save some money from battles and put them in a variable so the player can take it out later? I found the part to edit, I just don't know what to do. It also could be controllable by a switch.
     
    You mean like how Pokémon has your mom look after money?
     
    You can use variables, i will try to do it and will post here :) I will start right now:)
     
    OK i dont done event, but when withdrawing from mom just use variables.

    To add money to trainer use: $Trainer.money+=$game_variables[variable]

    Maybe it is not something special but works.

    Now script which i used in Pokebatte_battle
    Search for
    else
    maxlevel*[email protected]*3/4
    $game_variables[MOM_MONEY]+=maxlevel*1/4
    Also the text.
    if moneygained>0
    pbDisplayPaused(_INTL("{1} got ${2}\r\nfor winning!",self.pbPlayer.name,maxlevel))
    pbDisplayPaused(_INTL("{1} send some to mom.",self.pbPlayer.name))
    end
     
    Back
    Top