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

Custom Stat Boosting Item bugs my Pokemon?

  • 39
    Posts
    14
    Years
    Apparently when I give my pokemon an item to hold that boosts all its stats, its attacks don't work. They show up on the screen but it does nothing.

    This is the script of the item:
    if isConst?(attacker.species,PBSpecies,:MOLTRES) && isConst?(attacker.item,PBItems,:DESPARATESOUL)
    atk=(atk*1.05).floor
    defense=(defense*1.05).floor
    speed=(speed*1.05).floor
    spatk=(spatk*1.05).floor
    spdef=(spdef*1.05).floor
    end

    My thanks to all those who help.
    ~HankMan

    P.S
    Also, how to you add a 150% exp gain?
     
    Last edited:
    A couple of points.

    "Desperate" has an E in the middle, not an A. Alternatively, "disparate" has an I near the beginning, not an E. Check the spelling.

    I assume your code is in the script section PokeBattle_Move in the def pbCalcDamage. That'll do for everything except the speed - speed calculations are done elsewhere, in in the script section PokeBattle_Battler in the def pbSpeed. Put some similar code in there to modify the speed.

    Three examples of providing 150% Exp already exist: for trainer battles, for foreign Pokémon, and for when holding a Lucky Egg. Search the script section PokeBattle_Battle for exp=(exp*3/2).floor to find them, and copy them.

    When you have an idea, the best thing you can do is think: "Is there something like this already that I can copy?" If there is, find it and copy it. If not, think of something similar that already exists and copy that.
     
    Back
    Top