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

[Question] Items as Abilities?

Cuprite (Kyu)

Formerly TheGoldenRiolu
  • 128
    Posts
    8
    Years
    Ok, so I had an idea for a special Pokemon. Basically, lore-wise, it's an abandoned Zigzagoon that always holds an Amulet Coin (Refuses to ever let go of it, since it's like it's most treasured possession). I want to take the Amulet Coin and make it into an ability for this one specific Zigzagoon. Is there a way to do that?
    (Apologies if this is the wrong place for this)
     
    Ok, so I had an idea for a special Pokemon. Basically, lore-wise, it's an abandoned Zigzagoon that always holds an Amulet Coin (Refuses to ever let go of it, since it's like it's most treasured possession). I want to take the Amulet Coin and make it into an ability for this one specific Zigzagoon. Is there a way to do that?
    (Apologies if this is the wrong place for this)

    Yes, this is easy. Look for the Amulet Coin Hold Item Effect and add the hasWorkingAbility(:XXX) as a check there. (XXX is the name of the Ability)
     
    Thanks. I'll keep that in mind. Btw, sorry to bug you again, but is this the line in question I need?
    3948 - # If Amulet Coin/Luck Incense's effect applies, double money earned
    3949 - tmoney*=2 if @amuletcoin
    (I didn't know how to quote. ;-;)
     
    Last edited:
    Thanks. I'll keep that in mind. Btw, sorry to bug you again, but is this the line in question I need?

    I am on Mobile right now so I'm not sure... But I think you can do this and it may work
    Code:
    tmoney*=2 if @amuletcoin || hasWorkingAbility (:COIN)
     
    tmoney*=2 if @amuletcoin || hasWorkingAbility (:COIN)
    Well, it did something, cause now I got an error when I won a battle to test it. Lol.
    It's definitely a step in the right direction tho.
     

    Attachments

    • [PokeCommunity.com] Items as Abilities?
      error.png
      27.5 KB · Views: 4
    Yeah, so look for

    Code:
    isConst?(@battlers[i].item,PBItems,:AMULETCOIN)
    in PokeBattle_Battle using Ctrl+F, and wherever you see this add

    Code:
    ||  @battlers[i].hasWorkingAbility(:COIN)
     
    Yeah, so look for

    isConst?(@battlers.item,PBItems,:AMULETCOIN)
    in PokeBattle_Battle using Ctrl+F, and wherever you see this add

    || @battlers.hasWorkingAbility(:COIN)


    Kinda funny, I already did that. Lol.
    Only problem is that it didn't affect the money obtained at all. Both Zigzagoon I used ended with $176 obtained at the end of battle.
    ...Unless it just has to be in the party... I should probably test that too.

    Edit: Only changed one instance. Lol.
    Edit 2: IT WORKS!!! Thanks for helping out, I seriously appreciate it. ^-^
     

    Attachments

    • [PokeCommunity.com] Items as Abilities?
      error.png
      11 KB · Views: 4
    Last edited:
    Back
    Top