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.
Weird, I tried my hand on this but for some reason when I activate dynamax the move didn't change into their max moves. I placed the def pbmaxmove in Pokebattle_battler, below def isairborne?. I've also added the battler.pbmaxmove to pokebattle_scene.
Ok, found out the the reason why the move...
Ok so I fixed it and found that the error originated from def initialize(index=0,move=nil,viewport=nil) in PokeBattle_Scene. Specifically in the last line refresh(index,moves,0,0,0). The initial code was refresh(index,moves,0,0); I overlooked that one and didn't add another 0 when I added new...
I made ultraButton already, in fact, I copied their ultra burst code, then tried to modify it to last only three turns, like dynamax. For some reason I got that error. Unfortunately I'm not really sure how to track down what causes the error, and I've made sure I've written ultraButton where...
Ok, so I was trying to code something like necrozma's ultra burst, but it has limited turns. Unfortunately, I got this error when starting a battle:
Exception: ArgumentError
Message: wrong number of arguments(4 for 5)
PokeBattle_ActualScene:379:in `refresh'
PokeBattle_ActualScene:379:in...
Thank you Vendily, and sorry for the problem ^^
Huh, I forgot you can force recompile with ctrl. Anyway, I've checked the pbs and the internal names many times, so I'm fairly certain I don't make a mistake there. Thank you for your help!
Okay, so I modified the stance change code, and put it in pbUseMove as you advised, and nothing still happened in game.
Then out of curiosity (and frustration) I assigned the effect to an already existing ability.
It worked now.
I don't really understand. Why did it only work when I assign it to...
Hm, that makes sense...thanks for explaining that to me. So with that the case, I should move the code to pbUseMove? And is there something I can fix in the code? I'm still new to this so I usually write code by taking a look at existing ones.
Can you explain more about thismove.nil? Is always true?
And about this code, I made it from tweaking the code used for Aegislash's form change, and it works in game so it should be defined...I think?
Hi, I'm trying to make a custom ability that changes a pokemon's form when it uses a move of a certain type. I put this code here in pokebattle_battler, in def pbcheckform, but instead it doesn't do anything when the pokemon use the move in battle; the pokemon didn't change the form whatsoever...