Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old July 14th, 2018 (4:00 PM).
Marin's Avatar
Marin Marin is offline
Not Bored
 
Join Date: Nov 2016
Age: 16
Gender: Other
Posts: 793
In the PokeBattle_Battle script, find this piece of code (lines 61 - 64 in a clean project if I'm not mistaken)
Code:
    if @opponent && (!pbIsSnagBall?(ball) || !battler.isShadow?)
      @scene.pbThrowAndDeflect(ball,1)
      pbDisplay(_INTL("The Trainer blocked the Ball!\nDon't be a thief!"))
    else
Change it to this:
Code:
    if @opponent && (!pbIsSnagBall?(ball) || !battler.isShadow?)
      @scene.pbThrowAndDeflect(ball,1)
      pbDisplay(_INTL("The Trainer blocked the Ball!\nDon't be a thief!"))
    elsif MAPSCANNOTUSEPOKEBALLS.include?($game_map.map_id)
      @scene.pbThrowAndDeflect(ball,1)
      pbDisplay(_INTL("You cannot use Poké Balls here!"))
    else

In your Settings script at the very top, add this:
Code:
MAPSCANNOTUSEPOKEBALLS = [1,2,3,4]
These numbers, 1,2,3,4 are the Map IDs on which you cannot use Poké Balls.
Reply With Quote
  #2    
Old July 14th, 2018 (5:36 PM).
_Lendaryo_'s Avatar
_Lendaryo_ _Lendaryo_ is offline
     
    Join Date: Aug 2017
    Location: Brasil
    Gender: Male
    Nature: Serious
    Posts: 33
    The script is edited, but I think I get it. Thank you for your help!
    Reply With Quote
    Reply

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -8. The time now is 3:24 AM.