- 51
- Posts
- 10
- Years
- Seen Jan 8, 2023
I tried to Install the ability battle bond, but appears a syntax error in PokeBattle_Battler...why?
I tried to Install the ability battle bond, but appears a syntax error in PokeBattle_Battler...why?
When did you get the error message and what did it look like? I don't think I've included the Ash-Greninja sprite, so if it was once Battle Bond triggered, that could be an explanation. Here are the Ash-Greninja sprites in case you did not already have these (I've updated the main file as well to include those):
Click here to download Ash-Greninja's sprites.
Lacking a form sprite doesn't cause a game crash. If a form doesn't have a sprite, the game just uses the default sprite for the species. See Scatterbug and Spewpa.
I Submitted both icons and sprites ... the error is as follows (the number is the last line of the pokèbattle_battler)
@effects[PBEffects::BattleBond]=1
user.effects[PBEffects::BattleBond]=1
yes, i paste and change correctly, but nothing :(
# Arceus
if isConst?(self.ability,PBAbilities,:MULTITYPE) &&
isConst?(self.species,PBSpecies,:ARCEUS)
if [email protected]
[email protected]
transformed=true
end
end
# Zen Mode
if isConst?(self.species,PBSpecies,:DARMANITAN)
if self.hasWorkingAbility(:ZENMODE) && @hp<=((@totalhp/2).floor)
if self.form!=1
self.form=1; transformed=true
end
else
if self.form!=0
self.form=0; transformed=true
end
end
end
[COLOR="Red"] # Greninja
if isConst?(self.species,PBSpecies,:GRENINJA) && self.hasWorkingAbility(:BATTLEBOND)
user=self
if user.effects[PBEffects::BattleBond]==1 && self.form==0
self.form=1; transformed=true
end
end[/COLOR]
# Moxie
if user.hasWorkingAbility(:MOXIE) && target.isFainted?
if user.pbIncreaseStatWithCause(PBStats::ATTACK,1,user,PBAbilities.getName(user.ability))
PBDebug.log("[Ability triggered] #{user.pbThis}'s Moxie")
end
end
[COLOR="Red"] # Battle Bond
if isConst?(user.species,PBSpecies,:GRENINJA) && user.hasWorkingAbility(:BATTLEBOND)
if target.isFainted? && !user.isFainted? && user.form==0
[email protected](target.index)
if party.length>1
PBDebug.log("[Ability triggered] #{user.pbThis}'s Battle Bond")
@effects[PBEffects::BattleBond]=1
end
end
end[/COLOR]
I was adding Laser Focus, but my game doesn't find def pbEffectsOnMoveEnd
I am using Essentials 16.2. How can I resolve?
# In PokeBattle_Battler, add this above "def pbObedienceCheck?":
################################################################################
# Effects end of turn
################################################################################
def pbEffectsOnMoveEnd(move,user,target,damage)
user.effects[PBEffects::LaserFocus]-=1
end
# Lower down PokeBattle_Battler, find the following lines:
target.pbFaint if target.isFainted? # no return
user.pbFaint if user.isFainted? # no return
break if user.isFainted? || target.isFainted?
# Berry check (maybe just called by ability effect, since only necessary Berries are checked)
for j in 0...4
@battle.battlers[j].pbBerryCureCheck
end
# PASTE LINE BELOW HERE
break if user.isFainted? || target.isFainted?
target.pbUpdateTargetedMove(thismove,user)
break if target.damagestate.calcdamage<=0
end
turneffects[PBEffects::TotalDamage]+=totaldamage if totaldamage>0
# Paste this line where indicated:
pbEffectsOnMoveEnd(thismove,user,target,damage)
Hello, I'm editing all the scripts and I'm having a problem with this part of RKS-System:
# Find this line:
if isConst?(opponent.ability,PBAbilities,:MULTITYPE)
# And replace it with this:
if isConst?(opponent.ability,PBAbilities,:MULTITYPE) || isConst?(opponent.ability,PBAbilities,:RKSSYSTEM
Where I can not find the line above, could you tell me which script it is in?
Hello, I really wanted this package for my project, but when I click to download, the download simply does not recognize the file size and then it looks like it gave error.
If it is possible, could you send it on another site like mediafire or mega?
If I may make a small suggestion...it may be best to make the download smaller. You could upload each folder separately, such as placing music in one folder, and graphics in another. The file is pretty big. You don't have to, but a lot of people might appreciate it, if they can choose what they want to download, instead of having a huge chunk of stuff to download. I myself cannot download this pack.