Advertisement
TechSkylander1518

Pokemon Memories

Sep 14th, 2022
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.69 KB | None | 0 0
  1. #In the script section Pokémon (PokeBattle_Pokemon prior to v19), find the section at the top that lists the characteristics of individual Pokémon.
  2. #In v20, the end of it looks like this:
  3.   # Whether this Pokémon can be deposited in storage/Day Care
  4.   attr_accessor :cannot_store
  5.   # Whether this Pokémon can be released
  6.   attr_accessor :cannot_release
  7.   # Whether this Pokémon can be traded
  8.   attr_accessor :cannot_trade
  9. #Below that (or really, anywhere in the section), add
  10.   attr_accessor :memory        # Memory
  11. #At the bottom of Pokémon/PokeBattle_Pokemon, find the section that begins with "def initialize".
  12. #You're going to add in this line:
  13.     @memory       = _INTL("Press [ALT] to write more.")
  14. #Just for the sake of making sure you don't cross any ends, I recommend you put it in one of the cleaner parts of the section, somewhere like
  15.     @item         = nil
  16.     @memory       = _INTL("Press [ALT] to write more.")
  17. #In UI_Summary (PScreen_Summary in earlier versions), find
  18.       memo += sprintf("<c3=404040,B0B0B0>%s\n", characteristics[best_stat][best_iv % 5])
  19.     end
  20. #Below that "end", add
  21.       memo += @pokemon.memory    if @pokemon.memory
  22. #Finally, go to the bottom of PScreen_Summary and the section beginning with def pbScene.
  23. #Right above this line:
  24.       elsif Input.trigger?(Input::USE)
  25. #Put in this:
  26.       elsif Input.trigger?(Input::ALT) && !@pokemon.egg? && @page==2
  27.         @pokemon.memory=Kernel.pbMessageFreeText("#{@pokemon.name}'s memory?",_INTL(""),false,80)    
  28.           dorefresh = true
  29. #(It can technically go anywhere in this big branch of elseifs for commands, I just like putting it here because it's above all the ends and it's with similar functions)
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement