• 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.

[Discussion] Add EXP. Candy Items to your Pokémon Game!

  • 8
    Posts
    4
    Years
    Hi😊
    I'm new here in this community. Last friday I started to learn about Pokémon Essentials, RPG Maker XP and how to create my own Pokémon game :)
    Never did this before but I added a cool feature in my game that I want to share with you! EXP Candy!

    I hope you like it!

    Items added:
    - Exp. Candy XS
    - Exp. Candy S
    - Exp. Candy M
    - Exp. Candy L
    - Exp. Candy XL

    Code:
    The base for this feature I took from this post: here and Vendily's reply.
    He basically defined a new method called "pbChangeExp" which is a based on the existing method "pbChangeLevel"

    ---------------
    What I did: I just refined this code because some things where missing.

    The first thing I added was the pbChangeExp method:
    I inserted the following code in the 'PItem_Items' script in the [[ Items ]]-section.

    What it does :
    1. If a Pokémon gains only 1 level it will: add the exp. to reach the next level -> display level up -> handle learning new move and evolution -> add left exp. -> display that + how much exp. are left to reach the next level

    2. If a Pokémon gains more than 1 level it will: immediately jump to destination level unless there is a level in between where the Pokémon wants to learn a new move or evoles. If this happens it will display level up -> handle move learning / evolving (also if both events happen at the same level) -> go on until the Pokémon wants to learn the next move or reaches its destination level

    I also changed the message that will be displayed if the destination level is reached so you can tell the difference between: "Pokémon gained 1 level" and "Pokémon gained more than 1 level"


    PS: The texts in this method are written in German so you might wanna change that back to English, sorry for that^^
    The translation for the alternative level up message is basically: {1} has risen to level {2}! (see elsif and elsif under # [MESSAGES] For 'Level Up!' #)

    Spoiler:

    The second thing I added were the EXP Candy Items:

    For that I added the following code block to the 'PItem_ItemEffects' script in the [[ Items ]]-section.

    This is basically the RARECANDY item but we call 'pbChangeExp' instead of 'pbChangeLevel'.

    PS: I change the amount of exp. gained from: Exp. Candy XS, Exp. Candy S and Exp. Candy M from 100 exp., 800 exp. and 3000 exp. to 500 exp., 1500 exp. and 4500 exp.

    Spoiler:

    PBS Item.txt

    Obviously I also needed to add the items to the PBS item.txt. Like this:
    (You might need to change the first number in each line)

    638,EXPCANDYXS,Exp. Candy XS,Exp. Candies XS,1,20,"A candy that is packed with energy. When consumed, it will grant a single Pokémon a very small amount of 500 Exp. Points.",1,0,0,
    639,EXPCANDYS,Exp. Candy S,Exp. Candies S,1,240,"A candy that is packed with energy. When consumed, it will grant a single Pokémon a small amount of 1500 Exp. Points.",1,0,0,
    640,EXPCANDYM,Exp. Candy M,Exp. Candies M,1,1000,"A candy that is packed with energy. When consumed, it will grant a single Pokémon a moderate amount of 4.500 Exp. Points.",1,0,0,
    641,EXPCANDYL,Exp. Candy L,Exp. Candies L,1,3000,"A candy that is packed with energy. When consumed, it will grant a single Pokémon a large amount of 10.000 Exp. Points.",1,0,0,
    642,EXPCANDYXL,Exp. Candy XL,Exp. Candies XL,1,10000,"A candy that is packed with energy. When consumed, it will grant a single Pokémon a very large amount 30.000 of Exp. Points.",1,0,0,

    Sprites

    To set up sprites for my new items I took this sprite from rarecandy:
    "<Game folder>\Graphics\Icons\item263.png"

    and copied it for every Exp. candy I made: item638.png, item639.png, item640.png, ...

    Thank You!
     
    I like the nuances that you put into a well-known item. It can still carry the Rare Candy Trap because you're levelling up your Pokémon without training for EVs.
     
    I like the nuances that you put into a well-known item. It can still carry the Rare Candy Trap because you're levelling up your Pokémon without training for EVs.

    This works for me because in my game I removed EVs and IVs but I kept in the egg moves but way more. So at least I won't fall into that Rare Candy Trap.
     
    Back
    Top