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

Skydrop?

87
Posts
8
Years
    • Seen Jul 24, 2016
    I dont know if this error was already discussed or if it happens only in my game. ( Using EBS btw)
    When I use SKydrop (Aerodactyl in this case, dont know if it happens with other) it will fail and will fail everytime I try to use any move
     

    Telemetius

    Tele*
    267
    Posts
    9
    Years
  • Im using 16.1....This is awkward...I started my project with 16.1...never changed it..
    Ty man I´ll look more into it later.

    Well if you're using the last version then it has to be something to do with what you did with the scripts. What does the error message say?
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    Well if you're using the last version then it has to be something to do with what you did with the scripts. What does the error message say?

    That is the problem...there is no error message..but I just can´t continue with the game
    After I use it the time my enemy wont attack me and if I try to use any other move it will fail and my enemie keeps on not attacking me.
    Sorry Horrible English
     

    Telemetius

    Tele*
    267
    Posts
    9
    Years
  • That is the problem...there is no error message..but I just can´t continue with the game
    After I use it the time my enemy wont attack me and if I try to use any other move it will fail and my enemie keeps on not attacking me.
    Sorry Horrible English

    No errors, so unless you remember what in particular you edited I guess you're gonna have to do take the long way and check for differences for every script section you remember working with using a clean version of essentials
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    No errors, so unless you remember what in particular you edited I guess you're gonna have to do take the long way and check for differences for every script section you remember working with using a clean version of essentials

    Is it possible to be EBS bug? I forgot to mention im using it....I´ve searched into the scripts and didnt find anything wrong.
    Also I found this on "pokemondb.net": "There is a glitch with Sky Drop in Black/White in double battles. If Gravity is put into effect while the Pokemon are in the air, the user of Sky Drop returns to the ground, but the target stays in the air and cannot attack or be hit (apart from the moves above). Due to this, it has been banned from Wi-Fi battles and all official Pokemon competitions."
    This is what happens to me...But Gravity dont need to be in effect and it also happens in single battles.
     
    296
    Posts
    9
    Years
  • That is the problem...there is no error message..but I just can´t continue with the game
    After I use it the time my enemy wont attack me and if I try to use any other move it will fail and my enemie keeps on not attacking me.
    Sorry Horrible English
    Before to start a battle, You have to enter into Debug menu and activate the "Toggle Battle Logging".
    After this, start a battle and, when AI uses SkyDrop, post a screenshot of the result of the report that will appears in the screen.
     
    Last edited:
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    Before to start a battle, You have to enter into Debug menu and activate the "Toggle Battle Logging".
    After this, start a battle and, when AI uses SkyDrop, post a screenshot of the result of the report that will appears in the screen.

    Something Like this?:

    ***Round 1***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Move did 1 hit(s), total damage=0
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 2***
    [Reusing commands] Aerodactyl
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Continuing multi-turn move Sky Drop
    [Move failed] Failed pbMoveFailed (function code CE)
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 3***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 4***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Fury Swipes
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Rock Slide
    [Move failed] Failed pbAccuracyCheck (function code 0F) or target is semi-invulnerable
    The wild Pansage used Fury Swipes
    [Move failed] The wild Pansage can't use Fury Swipes because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 5***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Lick
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Hyper Beam
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Lick
    [Move failed] The wild Pansage can't use Lick because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 6***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 7***
     
    223
    Posts
    8
    Years
  • Something Like this?:

    ***Round 1***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Move did 1 hit(s), total damage=0
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 2***
    [Reusing commands] Aerodactyl
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Continuing multi-turn move Sky Drop
    [Move failed] Failed pbMoveFailed (function code CE)
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 3***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 4***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Fury Swipes
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Rock Slide
    [Move failed] Failed pbAccuracyCheck (function code 0F) or target is semi-invulnerable
    The wild Pansage used Fury Swipes
    [Move failed] The wild Pansage can't use Fury Swipes because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 5***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Lick
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Hyper Beam
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Lick
    [Move failed] The wild Pansage can't use Lick because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 6***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 7***
    Don't know if this is going to help but why don't you try going to the description for Sky Drop maybe you changed something there. It is in EBS/moves skydrop should have this:
    163,SKYDROP,Sky Drop,0CE,60,FLYING,Physical,100,10,0,00,0,abefl,"The user takes the foe into the sky, then drops it on the next turn. The foe cannot attack while airborne."
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    Don't know if this is going to help but why don't you try going to the description for Sky Drop maybe you changed something there. It is in EBS/moves skydrop should have this:
    163,SKYDROP,Sky Drop,0CE,60,FLYING,Physical,100,10,0,00,0,abefl,"The user takes the foe into the sky, then drops it on the next turn. The foe cannot attack while airborne."

    Ty But I have that correct...just checked :D
     
    296
    Posts
    9
    Years
  • Something Like this?:

    ***Round 1***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Move did 1 hit(s), total damage=0
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 2***
    [Reusing commands] Aerodactyl
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Sky Drop
    Continuing multi-turn move Sky Drop
    [Move failed] Failed pbMoveFailed (function code CE)
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 3***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Leech Seed
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Leech Seed
    [Move failed] The wild Pansage can't use Leech Seed because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 4***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Fury Swipes
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Rock Slide
    [Move failed] Failed pbAccuracyCheck (function code 0F) or target is semi-invulnerable
    The wild Pansage used Fury Swipes
    [Move failed] The wild Pansage can't use Fury Swipes because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 5***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Lick
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Hyper Beam
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Lick
    [Move failed] The wild Pansage can't use Lick because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 6***
    [AI] The wild Pansage's moves: Lick=100, Vine Whip=100, Fury Swipes=100, Leech Seed=100
    [AI] Will use Vine Whip
    [Priority] Aerodactyl (0), the wild Pansage (1)
    Aerodactyl used Giga Impact
    [Move failed] Failed pbAccuracyCheck (function code C2) or target is semi-invulnerable
    The wild Pansage used Vine Whip
    [Move failed] The wild Pansage can't use Vine Whip because of being Sky Dropped
    Cancelled using the move
    [End of round]
    ***Round 7***
    Are you using a clean version of Essentials? Have you done a correct update from 16 to 16.1? Did you do some edits in the script section?
    I ask you all this questions, because it seems that the @battle.battler[yourIndex].effects[PBEffects::SkyDrop] remains always true. Could you post more details?
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    Are you using a clean version of Essentials? Have you done a correct update from 16 to 16.1? Did you do some edits in the script section?
    I ask you all this questions, because it seems that the @battle.battler[yourIndex].effects[PBEffects::SkyDrop] remains always true. Could you post more details?

    I just downloaded a clean version of essentials...(16.1) and skydrop doesnt work there properly as well...just to let you know...I will gone by now........
     
    296
    Posts
    9
    Years
  • I just downloaded a clean version of essentials...(16.1) and skydrop doesnt work there properly as well...just to let you know...I will gone by now........
    16.1 is only an update. You have to download v. 16 and after this upgrade your game to 16.1. Otherwise you can post some of your script section or make a little video on youtube "Not Listed".
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    16.1 is only an update. You have to download v. 16 and after this upgrade your game to 16.1. Otherwise you can post some of your script section or make a little video on youtube "Not Listed".

    Ok man I will make a video when I have time to show that.....
     
    87
    Posts
    8
    Years
    • Seen Jul 24, 2016
    16.1 is only an update. You have to download v. 16 and after this upgrade your game to 16.1. Otherwise you can post some of your script section or make a little video on youtube "Not Listed".

    Here it is https:// www.youtube. com/watch?v=1GU9vBymZnk&feature=youtu.be (link separated Guess I cannot post links yet)
     
    296
    Posts
    9
    Years
  • Here it is https:// www.youtube. com/watch?v=1GU9vBymZnk&feature=youtu.be (link separated Guess I cannot post links yet)
    The move always fails, because of this line:

    PokeBattle_MoveEffect script section - line 5728 - ret=true if opponent.effects[PBEffects::SkyDrop] into def pbMoveFailed.

    EDIT: I'm trying to find a solution, because i found the cause of the problem.
     
    Last edited:
    296
    Posts
    9
    Years
  • I think that i found a valid solution.

    The problem is that, when a Pokémon uses SkyDrop, it sets the opponent SkyDrop effect to true, and its TwoTurneffect to the move's index (163). When the second part of the attack starts, the game check if the move can fail. Unfortunately this happens because of the line ret=true if opponent.effects[PBEffects::SkyDrop]; in fact the opponent.effects[PBEffects::SkyDrop] is equal to true. To correct this we need to create another effect, into PBEffects script section, that traces the actual state of the attacker (it's using SkyDrop, but we can't use the same effect of the opponent, that suffers that move).

    Into PBEffects script section, after Yawn = 106, we need to add:
    SkyDropAttacker = 107

    Now, into the 0xCE PokeBattle_MoveEffect script section, we need to edit some lines:
    First thing first, we need to correct the line
    ret=true if opponent.effects[PBEffects::SkyDrop] to:

    ret=true if opponent.effects[PBEffects::SkyDrop] && attacker.effects[PBEffects::SkyDropAttacker]==false

    After this, we need to add
    attacker.effects[PBEffects::SkyDropAttacker]=true after opponent.effects[PBEffects::SkyDrop]=true

    And then
    attacker.effects[PBEffects::SkyDropAttacker]=false after opponent.effects[PBEffects::SkyDrop]=false

    Now, the game checks if the opponent is in the air with the attacker before to determine if the move will fails; however, this isn't enough, because the opponent will avoid always this move. Therefore, after the following line:
    override=true if USENEWBATTLEMECHANICS && thismove.function==0x06 && thismove.basedamage==0 && user.pbHasType?(:POISON)

    We need to add this:
    override=true if target.effects[PBEffects::SkyDrop] && user.effects[PBEffects::SkyDropAttacker] && thismove.function==0xCE

    I hope that this is enough and, above all, correct! :)
     
    Last edited:
    129
    Posts
    8
    Years
    • Seen Mar 23, 2023
    Do you need to set the SkyDrop effect on the attacker if there will now be a SkyDropAttacker effect?

    Also, I think you should go link your post over in the bugs thread now, for completeness sake. (Not sure how Murano does his bug tracking, but if it's that thread, it should be there).
     
    220
    Posts
    13
    Years
    • Seen Nov 29, 2021
    override=true if USENEWBATTLEMECHANICS && thismove.function==0x06 && thismove.basedamage==0 && user.pbHasType?(:POISON)

    This line doesn't exist in my PokeBattle_MoveEffects, is it in another file?
    EDIT: Answered my own question, It's in PokeBattle_Battler.
     
    Back
    Top