- 83
- Posts
- 5
- Years
- She/It/Mew
- Seen Feb 22, 2023
Where do I put the info for the dynamax switch stuff? Can you post an example? Whenever I do it, it makes it so that I'm unable to battle any wild Pokemon and gives an error message.
Last edited:
Where do I put the info for the dynamax switch stuff? Can you post an example? Whenever I do it, it makes it so that I'm unable to battle any wild Pokemon and gives an error message.
Here's what I did for the script
# Make all wild Pokémon Dynamax while a certain Switch is ON (see Settings).
Events.onWildPokemonCreate += proc { |_sender, e|
pokemon = e[0]
if $game_switches[DYNAMAX_BATTLE_SWITCH]
pokemon.makeDynamax
end
}
Clearly something is wrong bcz it's preventing any event encounters
Oh, I got it! I replaced it so it was this instead.
# Make all wild Pokémon Dynamax while a certain Switch is ON (see Settings).
Events.onWildPokemonCreate += proc { |_sender, e|
pokemon = e[0]
if $game_switches[35]
pokemon.makeDynamax
end
}
Thank you for helping!
oh crap, its kinda too late. how do i change it back?
Hey! I got this error when using a specific Max Raid spot. The other spots ran with no problems. I used it to tinker a little, but i guess the game stored some changes I made and I can't make it work anymore, even after reseting it to the default event "pbMaxRaid".
Creating a new save fixed it, but if you could help me understand this one I would appreciate it.
Spoiler:[Pokémon Essentials version 18.1.dev]
Exception: RuntimeError
Message: Script error within event 2 (coords 7,7), map 82 (Max Raids):
Exception: NoMethodError
Message: ZUD_MaxRaid_02_Events:988:in `pbMaxRaidEntry'undefined method `>=' for nil:NilClass
***Full script:
pbMaxRaid
Backtrace:
Interpreter:197:in `pbExecuteScript'
ZUD_MaxRaid_02_Events:914:in `pbStartScene'
ZUD_MaxRaid_02_Events:1543:in `pbStartScreen'
ZUD_MaxRaid_02_Events:1527:in `pbMaxRaid'
(eval):1:in `pbExecuteScript'
Interpreter:1458:in `eval'
Interpreter:197:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Backtrace:
Interpreter:246:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Interpreter:102:in `loop'
Interpreter:158:in `update'
Scene_Map:162:in `update'
Scene_Map:160:in `loop'
Scene_Map:169:in `update'
Scene_Map:229:in `main'
Hey! I got this error when using a specific Max Raid spot. The other spots ran with no problems. I used it to tinker a little, but i guess the game stored some changes I made and I can't make it work anymore, even after reseting it to the default event "pbMaxRaid".
Creating a new save fixed it, but if you could help me understand this one I would appreciate it.
Spoiler:[Pokémon Essentials version 18.1.dev]
Exception: RuntimeError
Message: Script error within event 2 (coords 7,7), map 82 (Max Raids):
Exception: NoMethodError
Message: ZUD_MaxRaid_02_Events:988:in `pbMaxRaidEntry'undefined method `>=' for nil:NilClass
***Full script:
pbMaxRaid
Backtrace:
Interpreter:197:in `pbExecuteScript'
ZUD_MaxRaid_02_Events:914:in `pbStartScene'
ZUD_MaxRaid_02_Events:1543:in `pbStartScreen'
ZUD_MaxRaid_02_Events:1527:in `pbMaxRaid'
(eval):1:in `pbExecuteScript'
Interpreter:1458:in `eval'
Interpreter:197:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Backtrace:
Interpreter:246:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Interpreter:102:in `loop'
Interpreter:158:in `update'
Scene_Map:162:in `update'
Scene_Map:160:in `loop'
Scene_Map:169:in `update'
Scene_Map:229:in `main'
Hi, I just downloaded this yesterday, and, for some reason,every time I try to open the game, I get this error message.
It looks like you didn't install all the scripts. Do you miss ZUD_09_Compilers? :)
I once tried to set it like pbMaxRaid(nil,nil,nil) so it would default size to 3, rank to random AND species to random (which I thought it would give an error, but I still tried it). I don't think that was the issue because I tried it again with a new save and it defaulted to Ditto. After trying to reset things by changing the event back to just "pbMaxRaid", pasting the same "faulty" event onto different maps (they worked) and replacing the bad event with functional ones from different maps (still same error), I then thought about something being stored in that map that made the event go wrong everytime I triggered it. After reading what Lucidious89 answered (which was very informative!), I expanded the Variable limit and found which variables were being stored. I couldn't replicate the error again to see if this method would work, but i believe that by inserting "Control Variables: ["variable"] = 1" above "pbMaxRaid" it would force the Event to run with a new pokemon and fix the error. I might be wrong, as my experience and understanding level about coding is too low.
Thanks for reminding me about the CTRL method.
TfolChespin you need to copy the content of each of those 12 files in the Data folder, create 12 new slots in Scripts and paste each file's content on each slot. Must be above Main and below Compiler_MapsAndEvents.
It's on the INSTALLATION GUIDE.txt:
Spoiler:4) Add the new scripts to your scripts. These new scripts should be added AFTER the
Compiler scripts, in the following order:
=======================
Compiler
Compiler PBS
Compiler MapsAndEvents
=======================
ZUD_01_Settings_Misc
ZUD_02_Battle_Mechanics
ZUD_03_Battle_Display
ZUD_04_Battle_Effects
ZUD_05_Move_Data
ZUD_06_Move_Effects
ZUD_07_Updated_Effects
ZUD_08_Updated_Sprites
ZUD_09_Compilers
ZUD_10_Pokedex
ZUD_MaxRaid_01_Battle
ZUD_MaxRaid_02_Events
=======================
Main
Wait a minute, do i just need to copy and paste the contents of the ZUD files into the script?
Thank you very much, but now theres a problem when I use a Zmove.
[Wed Mar 10 12:17:47 Eastern Standard Time 2021]
[Pokémon Essentials version 18.1]
Exception: NameError
Message: uninitialized constant PBEffects::GorillaTactics
Backtrace:
ZUD_04_Battle_Effects:589:in `pbEndTurn'
Battler_UseMove:525:in `_ZUD_pbUseMove'
ZUD_04_Battle_Effects:545:in `pbUseMove'
ZUD_04_Battle_Effects:408:in `pbProcessTurn'
ZUD_04_Battle_Effects:407:in `logonerr'
ZUD_04_Battle_Effects:407:in `pbProcessTurn'
Battle_Phase_Attack:126:in `pbAttackPhaseMoves'
Battle_Phase_Attack:122:in `each'
Battle_Phase_Attack:122:in `pbAttackPhaseMoves'
Battle_Phase_Attack:108:in `loop'
I think i saw someone else have the problem too on this discussion so I might just go look at that.