• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Pokémon Memories

Resource Pokémon Memories 2022-05-20

TechSkylander1518 submitted a new resource:

Pokémon Memories - Let the player write a little bit about their Pokémon in the trainer memo!

This code lets the player write a little blurb about their Pokémon in the Trainer Memo section of the summary screen!

In PokeBattle_Pokemon, find
Ruby:
Expand Collapse Copy
  attr_writer   :obtainLevel # Level obtained
  attr_accessor :hatchedMap  # Map where an egg was hatched
  attr_writer   :language    # Language
  attr_accessor :ot          # Original Trainer's name
  attr_writer   :otgender    # Original Trainer's gender...

Read more about this resource...
 
Oh, minor error in the instructions- I said you should go to the bottom of PScreen_Party for the last step, it's actually PScreen_Summary! (The code with "elsif Input.trigger?(Input::RIGHT) && !@pokemon.egg?" is only in Summary, though, so hopefully anyone using this already caught that, haha)
 

REALMUGEN

Trainer
Member
Joined
Jan 23, 2020
Posts
72
This is a beautiful script, thanks. A question, is there a way to limit the quantity of characters?
 
This is a beautiful script, thanks. A question, is there a way to limit the quantity of characters?
Thank you, that's real nice of you to say!

There sure is! It's actually already coded into the script! In the part that you add in PScreen_Summary, there's this line:
Ruby:
Expand Collapse Copy
Kernel.pbMessageFreeText("#{@pokemon.name}'s memory?",_INTL(""),false,80)

That "80" there is the character limit! Just change that to whatever you want!
 

REALMUGEN

Trainer
Member
Joined
Jan 23, 2020
Posts
72
Thank you, that's real nice of you to say!

There sure is! It's actually already coded into the script! In the part that you add in PScreen_Summary, there's this line:
Ruby:
Expand Collapse Copy
Kernel.pbMessageFreeText("#{@pokemon.name}'s memory?",_INTL(""),false,80)

That "80" there is the character limit! Just change that to whatever you want!
Ohhhh!

Thank you so much! Works perfectly! :D
 
Back
Top