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.
Hey Devil Monster,
If what you want to do is change the animation for the Rockclimb Hm, this should help. Otherwise be sure to get back at me on this topic. :)
Make sure your Rockclimb event looks something like this:
https://imgur.com/a/jJJGEF8
If you click the edit option on the "Set Move...
Here you go:
def pbAdditionalEffect(attacker,opponent)
return if opponent.damagestate.substitute
return if !opponent.pbCanPoison?(attacker,false,self)
poison = attacker.pbHasType?(:POISON) || attacker.pbPartner.pbHasType?(:POISON)
posion ? opponent.pbPoison(attacker,nil,true) ...
I've looked over your code and I think this is everything you want it to do. The syntax error was caused due to you closing the "def pbAdditionalEffect(attacker,opponent)" off with an end and then trying to continue it. :)
def pbAdditionalEffect(attacker,opponent)
if...
There is Sky Battle compatibility for V18. I would highly suggest you to upgrade to V18 anyways. If you can't or don't want to, message me again then I'd look into a version for 17.2. :)
https://www.pokecommunity.com/showthread.php?t=440442
I didn't encounter it myself, but this type of error is usually caused by an "infinite or near infinite" loop.The script will always check if the code it's executing actually continues.If it loops at the same spot for too long it breaks out of the code, resulting in that error message. An...
BattleHandlers::TargetAbilityOnHit.add(:TOXICGAS,
proc { |ability,user,target,move,battle|
next if !move.pbContactMove?(user)
next if user.poisoned? || battle.pbRandom(100)>=100
battle.pbShowAbilitySplash(target)
if...
def pbPoison(user=nil,msg=nil,toxic=false)
pbInflictStatus(PBStatuses::POISON,(toxic) ? 1 : 0,msg,user)
end
If you enter the Script Section "Battler_Statuses" in V18 around line 335 you'll find this function. Of course you're right that you can't just use
"pbPoison(user,nil,true)" to...
To change normal poisoning to its toxic version, suplement the function with the bold part:
pbPoison(user,nil,true)
(true stands for toxic| false for normal poisoning |false is the default value)
Hope that helps :)
Changing the form back is simple, just add this piece of code into "Pokemon_Forms":
MultipleForms.register(:NAMEOFYOURPOKEMON,{
"getFormOnLeavingBattle" => proc { |pkmn,battle,usedInBattle,endBattle|
next 2 if isConst?(pkmn.ability,PBAbilities,:DISGUISE) && (pkmn.fainted? || endBattle)
}
})
Haven't tried it out yet, but in theory this should work to store the values of the bag:
$game_variables[XXX] = $PokemonBag
$PokemonBag = PokemonBag.new
And this to revert the change:
$PokemonBag = $game_variables[XXX]
Don't forget to change the XXX to a variable that isn't in use yet. :)
To get a random variance into the status condition add this code above "# Infatuation" in the Script section "Battler_UseMove_SuccessChecks":
Then replace or complement this function:
While we're at it, you could also implement the healing text for the status already:
If any further problems...
Simply delete this code in "Battler_UseMove_SuccessChecks" to disable the random paralysis chance. :)
# Paralysis
if @status==PBStatuses::PARALYSIS
if @battle.pbRandom(100)<25
pbContinueStatus
@lastMoveFailed = true
return false
end
end
I'd advise you to use GIMP https://www.gimp.org/. It's free and easy to install. The sole problem is that there isn't much of a tutorial. Meaning you'll have to find one yourself or trial and error until you figure out the important stuff. :)
Maybe try adding a default form to the list to eliminate any errors regarding the function not returning any form.
Simply add the following as the last line of the function:
next 0
Hope the error gets resolved. :)