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

[Question] Making a new Quick Claw Item

PokePrinny

Project VS
  • 4
    Posts
    4
    Years
    • He/Him
    • USA
    • Seen Jun 20, 2022
    If I wanted to make another item just like Quick Claw, ie. "Quick Fang" etc. can I just copy the Quick Claw line in items.txt to make a new one or is there a part of the script where I need to include the new item? Maybe something to do with a priority section or special items...

    I tried the above but from my test battles, I never moved faster when slower.

    Thanks!
     
    hi! try using ctrl+shift+F in the script editor to search where quick claw appears! like abilities and moves, the pbs scripts for items doesn't hold the actual scripting that makes the item work the way it does, that is stored in various sections in the script editor
     
    Thanks I got it now! Changes in Blue :)

    #===============================================================================
    # PriorityBracketChangeItem handlers
    #===============================================================================

    BattleHandlers::PriorityBracketChangeItem.add(:CUSTAPBERRY,
    proc { |item,battler,subPri,battle|
    next if !battler.pbCanConsumeBerry?(item)
    next 1 if subPri<1
    }
    )

    BattleHandlers::PriorityBracketChangeItem.add(:LAGGINGTAIL,
    proc { |item,battler,subPri,battle|
    next -1 if subPri==0
    }
    )

    BattleHandlers::PriorityBracketChangeItem.copy(:LAGGINGTAIL,:FULLINCENSE)

    BattleHandlers::PriorityBracketChangeItem.add(:QUICKCLAW,
    proc { |item,battler,subPri,battle|
    next 1 if subPri<1 && battle.pbRandom(100)<20
    }
    )

    BattleHandlers::PriorityBracketChangeItem.copy(:QUICKCLAW,:QUICKFANG)

    #===============================================================================
    # PriorityBracketUseItem handlers
    #===============================================================================

    BattleHandlers::PriorityBracketUseItem.add(:CUSTAPBERRY,
    proc { |item,battler,battle|
    battle.pbCommonAnimation("EatBerry",battler)
    battle.pbDisplay(_INTL("{1}'s {2} let it move first!",battler.pbThis,battler.itemName))
    battler.pbConsumeItem
    }
    )

    BattleHandlers::PriorityBracketUseItem.add(:QUICKCLAW,
    proc { |item,battler,battle|
    battle.pbCommonAnimation("UseItem",battler)
    battle.pbDisplay(_INTL("{1}'s {2} let it move first!",battler.pbThis,battler.itemName))
    }
    )

    BattleHandlers::PriorityBracketUseItem.add(:QUICKFANG,
    proc { |item,battler,battle|
    battle.pbCommonAnimation("UseItem",battler)
    battle.pbDisplay(_INTL("{1}'s {2} let it move first!",battler.pbThis,battler.itemName))
    }
    )


    Tested and works :)
     
    Back
    Top