• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

Move effect error in Gen 6 project, can't use Escape Rope with following Pokémon problem

  • 46
    Posts
    11
    Years
    • Seen Jan 19, 2017
    i use add-on gen 6, and i have some problem with some moves.
    when i use any sleep effect move, i show a error message like
    [PokeCommunity.com] Move effect error in Gen 6 project, can't use Escape Rope with following Pokémon problem

    and when i use dig outside battle, (in the route, not in a cave), and i don't know how to use it in a cave, please tell me
    [PokeCommunity.com] Move effect error in Gen 6 project, can't use Escape Rope with following Pokémon problem

    EDIT: another question. i used follow pokemon script so i couldn't use escape rope. the game show the message that "It can't be used when you have someone with you". how can i fix it?
     
    Last edited:
    I'm sort of new to Ruby, but I'll try and help you out here.

    The first problem is too many arguments somewhere.

    The second problem is you need to set a up a cave's entrances and exits. How you do this is pretty simple. All you have to do is in the cave entrance and exit event, add pbCaveEntrance and pbCaveExit. Here is an example. You'll notice that Script: pbCaveEntrance is before the player transfer and after the Wait: 8 frame(s), that is how you want it to be. Do the same exact thing for the cave exit, but name is pbCaveExit instead.
     
    The second problem is you need to set a up a cave's entrances and exits. How you do this is pretty simple. All you have to do is in the cave entrance and exit event, add pbCaveEntrance and pbCaveExit. Here is an example. You'll notice that Script: pbCaveEntrance is before the player transfer and after the Wait: 8 frame(s), that is how you want it to be. Do the same exact thing for the cave exit, but name is pbCaveExit instead.
    i tried it but when i use dig move just the same. i used follow pokemon script so i couldn't use escape rope. the game show the message that "It can't be used when you have someone with you". how can i fix it?
     
    i tried it but when i use dig move just the same. i used follow pokemon script so i couldn't use escape rope. the game show the message that "It can't be used when you have someone with you". how can i fix it?

    One fix, although probably not recommended, is to delete the line of code that checks if the player has someone following them when using dig. To do that go to PField_HiddenMoves, CTRL-F for Dig, then delete this line of code:
    Code:
       if $game_player.pbHasDependentEvents?
         Kernel.pbMessage(_INTL("It can't be used when you have someone with you."))
         return false
       end
    But, as I stated previously, this fix is probably not recommended and there is most likely an easier/better fix out there.
     
    i've edited some script to make it work. now i can use sleep effect moves, escape rope and dig move. thanks
     
    I got the same error as you, how can you fix it? Can you help me? Thanks
     
    I got the same error as you, how can you fix it? Can you help me? Thanks
    i replaced "when PBMoves::DIG" in following script with
    Code:
    when PBMoves::DIG
    escape=($PokemonGlobal.escapePoint rescue nil)
    if !escape || escape==[]
    Kernel.pbMessage(_INTL("Can't use that here."))
    return false
    end
    mapname=pbGetMapNameFromId(escape[0])
    if Kernel.pbConfirmMessage(_INTL("Want to escape from here and return to {1}?",mapname))
    return true
    end
    return false
    .sleep effect moves i replaced "def pbCanSleep?" with "def pbCanSleep?" in essentials 15.1, then i added some code of "def pbCanSleep?" gen 6 into it. but i think it may have some error
     
    Okay, thank you bimbimthiensu, altho your name is sound kind of like Vietnamese xD

    Edit still getting sleep error with Rest =.=
     
    Last edited by a moderator:
    yeah i am vietnamese. i didn't test rest move. i'll find the way to fix that.

    Edit still getting sleep error with Rest =.=
    i think i can fix it. keep gen 6 class "PokeBattle_BattlerEffects" and replace "PokeBattle_MoveEffects" with this
     
    Last edited by a moderator:
    i think i can fix it. keep gen 6 class "PokeBattle_BattlerEffects" and replace "PokeBattle_MoveEffects" with this

    Cool, Glad to see a fellow Vietnamese here xD, Im vnmese too, let me try that and i will tell you if it work.
    Edited, The Rest works now xD, thank you so much
     
    Last edited:
    Back
    Top