The PokéCommunity Forums Fan Games Custom Game Development Resources
Other Gen 7 PBS, Scripts, Graphics and more

Resources Everything you need to help make your game can be found in here. You can also post your own resources. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #26    
Old January 28th, 2017 (10:44 AM). Edited January 28th, 2017 by M3rein.
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Gemini_air View Post
I Submitted both icons and sprites ... the error is as follows (the number is the last line of the pokèbattle_battler)
Such errors typically occur whenever you're missing an "end". From what I can see in the code I provided, there aren't any "end"s missing. Have you followed the steps correctly and pasted where things should be pasted?

Perhaps you could try changing
Code:
          @effects[PBEffects::BattleBond]=1
to
Code:
          user.effects[PBEffects::BattleBond]=1
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote

Relevant Advertising!

  #27    
Old January 28th, 2017 (2:54 PM).
Gemini_air's Avatar
Gemini_air Gemini_air is offline
 
Join Date: Oct 2014
Posts: 37
yes, i paste and change correctly, but nothing :(
Reply With Quote
  #28    
Old January 29th, 2017 (1:47 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Gemini_air View Post
yes, i paste and change correctly, but nothing
I really don't know what else could be wrong. Could you send me screenshots of what Battle Bond looks like in your script? Private message, so we don't spam this thread. This is what Battle Bond should look like:
Code:
    # 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
    # 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
Code:
    # 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
    # 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
Besides that, make sure you've defined the BattleBond effect appropriately.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #29    
Old January 29th, 2017 (9:55 AM).
onepiece01 onepiece01 is offline
 
Join Date: Aug 2015
Posts: 8
I was adding Laser Focus, but my game doesn't find def pbEffectsOnMoveEnd
I am using Essentials 16.2. How can I resolve?
Reply With Quote
  #30    
Old January 29th, 2017 (10:22 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by onepiece01 View Post
I was adding Laser Focus, but my game doesn't find def pbEffectsOnMoveEnd
I am using Essentials 16.2. How can I resolve?
I noticed this earlier today with something else, here is a quick tutorial that explains how to add it (I'll put it in the main pack and updates as well):

Spoiler:
Code:
# 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)

This function is something Rot8er_ConeX made for two of his abilities, Emergency Exit and Wimpout, but I thought it came with essentials since I've had it for a very long time. My bad and credit for the creation of this function goes to him.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #31    
Old February 1st, 2017 (10:37 AM).
EdR_Almeida EdR_Almeida is offline
 
Join Date: Dec 2015
Gender: Male
Posts: 19
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?
Reply With Quote
  #32    
Old February 1st, 2017 (12:13 PM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by EdR_Almeida View Post
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?
That's most likely located in PokeBattle_MoveEffects, under "Soak". Ctrl + F for "Target becomes Water type. (Soak)".

I just realized how many instances I probably missed for adding in RKS-System under other moves, but you could always add those in yourself.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #33    
Old February 8th, 2017 (12:03 PM).
Gemini_air's Avatar
Gemini_air Gemini_air is offline
 
Join Date: Oct 2014
Posts: 37
I resolved all problems...thanks man!!!!!!
Reply With Quote
  #34    
Old February 9th, 2017 (12:55 PM).
JoaoXDgames's Avatar
JoaoXDgames JoaoXDgames is offline
 
Join Date: May 2016
Gender: Male
Posts: 1
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?
Reply With Quote
  #35    
Old February 10th, 2017 (8:39 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by JoaoXDgames View Post
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?
Could you please specify which one? And did you only press the link, nothing more or less?
Because for me, it's working perfectly fine.

I tried uploading it to Mediafire, but it's being a huge asshole so that's not going to work. It wants me to upload every single file individually.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #36    
Old February 16th, 2017 (6:55 AM).
Bonslyfan's Avatar
Bonslyfan Bonslyfan is offline
 
Join Date: Jun 2010
Location: Australia
Gender: Male
Nature: Relaxed
Posts: 25
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.
__________________
Professor: You may pick a Pokémon.
Trainer: Hmm...Can I borrow all of them to see which is better?
Professor: Sure!
*Several weeks later*
Professor: He isn't coming back is he...

http://i1268.photobucket.com/albums/jj579/Rayquaza-Dot/Pokemon-Skyblaze-Supporter.gif
Reply With Quote
  #37    
Old February 16th, 2017 (1:26 PM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Bonslyfan View Post
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.
Thanks for your suggestion! I'll chop the download tomorrow, the audio files are probably especially big. I'm also going to include some new audio, as in properly looped versions with .ogg.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #38    
Old February 16th, 2017 (1:42 PM).
pedro ique's Avatar
pedro ique pedro ique is offline
 
Join Date: Feb 2017
Gender: Male
Posts: 28
erroClick image for larger version

Name:	Sem título.png
Views:	9
Size:	33.6 KB
ID:	81346
Reply With Quote
  #39    
Old February 17th, 2017 (6:08 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by pedro ique View Post
Have you not imported/compiled the abilities? Because pokemon.txt has gen 7 abilities included that will give such errors if you don't have the gen 7 abilities. Same goes for moves.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #40    
Old February 17th, 2017 (11:36 AM).
pedro ique's Avatar
pedro ique pedro ique is offline
 
Join Date: Feb 2017
Gender: Male
Posts: 28
Where do I get the 7 gene abilities?
Reply With Quote
  #41    
Old February 17th, 2017 (12:37 PM).
Rot8er_ConeX's Avatar
Rot8er_ConeX Rot8er_ConeX is offline
 
Join Date: May 2015
Location: The Dissa Region
Gender: Male
Posts: 811
Quote:
Originally Posted by pedro ique View Post
Where do I get the 7 gene abilities?
from this pack ._.
__________________
Features of Pokemon Entropy

The black circular "doodles" in the lower right corner of my avatar are actually my username written in Gallifreyan. Yes I'm a Whovian.
Reply With Quote
  #42    
Old February 17th, 2017 (4:47 PM).
Mashirosakura's Avatar
Mashirosakura Mashirosakura is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 25
Ok so I downloaded and updated my essentials with all this and I got these errors. The first is wild battle and the second is trainer.

Code:
Exception: NameError
Message: undefined local variable or method `opponent' for #<PokeBattle_Battler:0x967bff0>
PokeBattle_Battler:888:in `pbCheckForm'
PokeBattle_Battle:2133:in `pbOnActiveAll'
PokeBattle_Battle:2131:in `each'
PokeBattle_Battle:2131:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PField_Field:905:in `pbWildBattle'
PField_Field:904:in `pbSceneStandby'
PField_Field:906:in `pbWildBattle'
PField_Field:903:in `pbBattleAnimation'

Exception: RuntimeError
Message: Script error within event 8, map 81 (Imogi Town):
Exception: NameError
Message: Section080:888:in `pbCheckForm'undefined local variable or method `opponent' for #<PokeBattle_Battler:0xa3a0e58>
***Full script:
pbTrainerBattle(PBTrainers::FISHERMAN,"Ray",_I("Sing it with me!"),false,0,false,0)
Interpreter:243:in `pbExecuteScript'
PokeBattle_Battle:2133:in `pbOnActiveAll'
PokeBattle_Battle:2131:in `each'
PokeBattle_Battle:2131:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PTrainer_NPCTrainers:345:in `pbTrainerBattle'
PTrainer_NPCTrainers:344:in `pbSceneStandby'
PTrainer_NPCTrainers:346:in `pbTrainerBattle'
PTrainer_NPCTrainers:343:in `pbBattleAnimation'

Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
Reply With Quote
  #43    
Old February 17th, 2017 (10:06 PM).
Rot8er_ConeX's Avatar
Rot8er_ConeX Rot8er_ConeX is offline
 
Join Date: May 2015
Location: The Dissa Region
Gender: Male
Posts: 811
Has someone attempted to make Gen VII follower sprites yet?
__________________
Features of Pokemon Entropy

The black circular "doodles" in the lower right corner of my avatar are actually my username written in Gallifreyan. Yes I'm a Whovian.
Reply With Quote
  #44    
Old February 18th, 2017 (3:01 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Mashirosakura View Post
Ok so I downloaded and updated my essentials with all this and I got these errors. The first is wild battle and the second is trainer.

Code:
Exception: NameError
Message: undefined local variable or method `opponent' for #<PokeBattle_Battler:0x967bff0>
PokeBattle_Battler:888:in `pbCheckForm'
PokeBattle_Battle:2133:in `pbOnActiveAll'
PokeBattle_Battle:2131:in `each'
PokeBattle_Battle:2131:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PField_Field:905:in `pbWildBattle'
PField_Field:904:in `pbSceneStandby'
PField_Field:906:in `pbWildBattle'
PField_Field:903:in `pbBattleAnimation'

Exception: RuntimeError
Message: Script error within event 8, map 81 (Imogi Town):
Exception: NameError
Message: Section080:888:in `pbCheckForm'undefined local variable or method `opponent' for #<PokeBattle_Battler:0xa3a0e58>
***Full script:
pbTrainerBattle(PBTrainers::FISHERMAN,"Ray",_I("Sing it with me!"),false,0,false,0)
Interpreter:243:in `pbExecuteScript'
PokeBattle_Battle:2133:in `pbOnActiveAll'
PokeBattle_Battle:2131:in `each'
PokeBattle_Battle:2131:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PTrainer_NPCTrainers:345:in `pbTrainerBattle'
PTrainer_NPCTrainers:344:in `pbSceneStandby'
PTrainer_NPCTrainers:346:in `pbTrainerBattle'
PTrainer_NPCTrainers:343:in `pbBattleAnimation'

Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
More information please? What Pokémon did you send out/would you send out, what would/has the trainer send/sent out, have you made sure to you inserted everything properly, and with imported into Essentials, I assume you are running v16.2?

Quote:
Originally Posted by Rot8er_ConeX
Has someone attempted to make Gen VII follower sprites yet?
Not me.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #45    
Old February 18th, 2017 (5:06 AM).
Mashirosakura's Avatar
Mashirosakura Mashirosakura is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 25
Quote:
Originally Posted by M3rein View Post
More information please? What Pokémon did you send out/would you send out, what would/has the trainer send/sent out, have you made sure to you inserted everything properly, and with imported into Essentials, I assume you are running v16.2?
It's any Pokémon; it happens with every trainer. I spent about 3 hours carefully going through the files and placing them into my scripts. And yes I am running v16.2
Another piece of information I noticed is that it may involve something with Silvally or BattleBond Greninja because it involves the pbCheckForm part of PokeBattle_Battler. It says that a local variable or method 'opponent' is undefined.
Reply With Quote
  #46    
Old 4 Weeks Ago (8:08 AM). Edited 4 Weeks Ago by M3rein.
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Mashirosakura View Post
It's any Pokémon; it happens with every trainer. I spent about 3 hours carefully going through the files and placing them into my scripts. And yes I am running v16.2
Another piece of information I noticed is that it may involve something with Silvally or BattleBond Greninja because it involves the pbCheckForm part of PokeBattle_Battler. It says that a local variable or method 'opponent' is undefined.
I forgot to ask, could you give me roughly 5 lines before line 888 and 5 after (include 888)? I wasn't having any problems on my end, so I think I may have made a mistake making my "tutorial" files, or you might have made a small error. Anyways, could you give me the lines? I'll take a look at it.

I've also just updated the main post to include four extra download links, each for a different folder from the pack. ALSO, I've added a few .ogg audio files, which have loop tags included.
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #47    
Old 4 Weeks Ago (12:12 PM).
Mashirosakura's Avatar
Mashirosakura Mashirosakura is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 25
Quote:
Originally Posted by M3rein View Post
I forgot to ask, could you give me roughly 5 lines before line 888 and 5 after (include 888)? I wasn't having any problems on my end, so I think I may have made a mistake making my "tutorial" files, or you might have made a small error. Anyways, could you give me the lines? I'll take a look at it.

I've also just updated the main post to include four extra download links, each for a different folder from the pack. ALSO, I've added a few .ogg audio files, which have loop tags included.
Code:
    # Giratina
    if isConst?(self.species,PBSpecies,:GIRATINA)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Arceus
    if isConst?(opponent.ability,PBAbilities,:MULTITYPE) || isConst?(opponent.ability,PBAbilities,:RKSSYSTEM)
       isConst?(self.species,PBSpecies,:ARCEUS)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Silvally
    if isConst?(self.ability,PBAbilities,:RKSSYSTEM) &&
       isConst?(self.species,PBSpecies,:SILVALLY)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
These are lines 880 to 902. I assume it's around here that you asked for?
Reply With Quote
  #48    
Old 4 Weeks Ago (11:15 PM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Mashirosakura View Post
Code:
    # Giratina
    if isConst?(self.species,PBSpecies,:GIRATINA)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Arceus
    if isConst?(opponent.ability,PBAbilities,:MULTITYPE) || isConst?(opponent.ability,PBAbilities,:RKSSYSTEM)
       isConst?(self.species,PBSpecies,:ARCEUS)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Silvally
    if isConst?(self.ability,PBAbilities,:RKSSYSTEM) &&
       isConst?(self.species,PBSpecies,:SILVALLY)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
These are lines 880 to 902. I assume it's around here that you asked for?
I'm not sure how you got that Arceus part, as I have something different (which all seems to work). You can copy this over if you'd like:
Code:
# Giratina
    if isConst?(self.species,PBSpecies,:GIRATINA)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Arceus
    if isConst?(self.ability,PBAbilities,:MULTITYPE) &&
       isConst?(self.species,PBSpecies,:ARCEUS)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Silvally
    if isConst?(self.ability,PBAbilities,:RKSSYSTEM) &&
       isConst?(self.species,PBSpecies,:SILVALLY)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
  #49    
Old 4 Weeks Ago (1:10 AM). Edited 4 Weeks Ago by Mashirosakura.
Mashirosakura's Avatar
Mashirosakura Mashirosakura is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 25
Quote:
Originally Posted by M3rein View Post
I'm not sure how you got that Arceus part, as I have something different (which all seems to work). You can copy this over if you'd like:
Code:
# Giratina
    if isConst?(self.species,PBSpecies,:GIRATINA)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Arceus
    if isConst?(self.ability,PBAbilities,:MULTITYPE) &&
       isConst?(self.species,PBSpecies,:ARCEUS)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
    # Silvally
    if isConst?(self.ability,PBAbilities,:RKSSYSTEM) &&
       isConst?(self.species,PBSpecies,:SILVALLY)
      if [email protected]
        [email protected]
        transformed=true
      end
    end
Wouldn't you know, it's that one small Arceus thing thanks for the help, great work on the pack so far!

EDIT: And...now I can't attack. :/
Spoiler:
Code:
Exception: NameError
Message: undefined local variable or method `user' for #<PokeBattle_Battler:0x936df88>
PokeBattle_Battler:3072:in `pbUseMove'
PokeBattle_Battler:3516:in `pbProcessTurn'
PokeBattle_Battler:3515:in `logonerr'
PokeBattle_Battler:3515:in `pbProcessTurn'
PokeBattle_Battle:2888:in `pbAttackPhase'
PokeBattle_Battle:2885:in `each'
PokeBattle_Battle:2885:in `pbAttackPhase'
PokeBattle_Battle:2873:in `times'
PokeBattle_Battle:2873:in `pbAttackPhase'
PokeBattle_Battle:2591:in `pbStartBattleCore'
And also I probably did something with Alolan Raichu because I also got this one. It mentions the speed category.
Code:
Exception: RuntimeError
Message: Script error within event 14, map 2 (Temporal Realm):
Exception: NoMethodError
Message: Section080:697:in `pbSpeed'undefined method `effects' for #<PokeBattle_Battle:0x990fb08>
***Full script:
pbTrainerBattle(PBTrainers::TEAMROCKET_M,"Wally",_I("Yeah, I figured."),true)
Interpreter:243:in `pbExecuteScript'
PokeBattle_Battle:1040:in `pbPriority'
PokeBattle_Battle:1039:in `each'
PokeBattle_Battle:1039:in `pbPriority'
PokeBattle_Battle:2126:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PTrainer_NPCTrainers:345:in `pbTrainerBattle'
PTrainer_NPCTrainers:344:in `pbSceneStandby'
PTrainer_NPCTrainers:346:in `pbTrainerBattle'

Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
So I looked into it. Here's line 691-706:
Code:
    if self.pbOwnSide.effects[PBEffects::Swamp]>0
      speedmult=(speedmult/2).round
    end
    if self.status==PBStatuses::PARALYSIS && !self.hasWorkingAbility(:QUICKFEET)
      speedmult=(speedmult/4).round
    end
    if self.hasWorkingAbility(:SURGESURFER) && @battle.effects[PBEffects::ElectricTerrain]>0
      speedmult=speedmult*2
    end
    if @battle.internalbattle && @battle.pbOwnedByPlayer?(@index) &&
       @battle.pbPlayer.numbadges>=BADGESBOOSTSPEED
      speedmult=(speedmult*1.1).round
    end
      speed=(speed*speedmult*1.0/0x1000).round
    return [speed,1].max
  end
Reply With Quote
  #50    
Old 4 Weeks Ago (7:14 AM).
M3rein's Avatar
M3rein M3rein is online now
 
Join Date: Nov 2016
Location: The Netherlands
Gender: Male
Nature: Bashful
Posts: 181
Quote:
Originally Posted by Mashirosakura View Post
Wouldn't you know, it's that one small Arceus thing thanks for the help, great work on the pack so far!

EDIT: And...now I can't attack. :/
Spoiler:
Code:
Exception: NameError
Message: undefined local variable or method `user' for #<PokeBattle_Battler:0x936df88>
PokeBattle_Battler:3072:in `pbUseMove'
PokeBattle_Battler:3516:in `pbProcessTurn'
PokeBattle_Battler:3515:in `logonerr'
PokeBattle_Battler:3515:in `pbProcessTurn'
PokeBattle_Battle:2888:in `pbAttackPhase'
PokeBattle_Battle:2885:in `each'
PokeBattle_Battle:2885:in `pbAttackPhase'
PokeBattle_Battle:2873:in `times'
PokeBattle_Battle:2873:in `pbAttackPhase'
PokeBattle_Battle:2591:in `pbStartBattleCore'
And also I probably did something with Alolan Raichu because I also got this one. It mentions the speed category.
Code:
Exception: RuntimeError
Message: Script error within event 14, map 2 (Temporal Realm):
Exception: NoMethodError
Message: Section080:697:in `pbSpeed'undefined method `effects' for #<PokeBattle_Battle:0x990fb08>
***Full script:
pbTrainerBattle(PBTrainers::TEAMROCKET_M,"Wally",_I("Yeah, I figured."),true)
Interpreter:243:in `pbExecuteScript'
PokeBattle_Battle:1040:in `pbPriority'
PokeBattle_Battle:1039:in `each'
PokeBattle_Battle:1039:in `pbPriority'
PokeBattle_Battle:2126:in `pbOnActiveAll'
PokeBattle_Battle:2574:in `pbStartBattleCore'
PokeBattle_Battle:2399:in `pbStartBattle'
PTrainer_NPCTrainers:345:in `pbTrainerBattle'
PTrainer_NPCTrainers:344:in `pbSceneStandby'
PTrainer_NPCTrainers:346:in `pbTrainerBattle'

Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
So I looked into it. Here's line 691-706:
Code:
    if self.pbOwnSide.effects[PBEffects::Swamp]>0
      speedmult=(speedmult/2).round
    end
    if self.status==PBStatuses::PARALYSIS && !self.hasWorkingAbility(:QUICKFEET)
      speedmult=(speedmult/4).round
    end
    if self.hasWorkingAbility(:SURGESURFER) && @battle.effects[PBEffects::ElectricTerrain]>0
      speedmult=speedmult*2
    end
    if @battle.internalbattle && @battle.pbOwnedByPlayer?(@index) &&
       @battle.pbPlayer.numbadges>=BADGESBOOSTSPEED
      speedmult=(speedmult*1.1).round
    end
      speed=(speed*speedmult*1.0/0x1000).round
    return [speed,1].max
  end
I see I've made a mistake with copying over my changes to the "tutorial" files. It should be @battle.field.effects. This is what it should look like:
Code:
    if self.hasWorkingAbility(:SURGESURFER) && @battle.field.effects[PBEffects::ElectricTerrain]>0
      speedmult=speedmult*2
    end
That should fix the second problem. As for the first one, could you link me some lines around 3072 in PokeBattle_Battler?
__________________
C# and RGSS are main bae, but you're okay as well.
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 7:48 AM.