• 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 Trading Card Game 2 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.

Saving money

Skystrike

[i]As old as time itself.[/i]
  • 1,640
    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