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.
I am using v 16.2 and it is not fixed
I will try and look through to see if I am doing something wrong
My mistake. I thought I was using the new version but I was using 16.1.
mej71 is there a way to update my current version of 16.1 to 16.2 but without losing any custom scripting I may have...
When having one pokemon in my party and when using encounter modifiers: an error will occur if the average of my party is only the level one pokemon. The random level modifier will error out due to dropping to level 0 or below.
---------------------------
Pokemon Essentials...
So I figured it out. Well kind of. I deleted one portion of your code and was left with the following code that works.
Events.onTrainerPartyLoad+=proc {|sender,e|
if e[0] # Trainer data should exist to be loaded, but may not exist somehow
trainer=e[0][0] # A PokeBattle_Trainer object...
It's only that long because I added all the modifiers for each map I wanted the wild encounters to be modified. It always shows the last line of the script being in the issue. Can you test the code you gave me and see if it works for you?
That random "party" was a mistake I made when I copied the code over but was not in my script when I went to upload the game. The following syntax error is what I get. I have messed around with deleting certain "ends" to see if it would make a difference but nothing.
Script...
I apperciate your patience with me. So I inputed your code where you told me to and now I have the following code.
if e[0] # Trainer data should exist to be loaded, but may not exist somehow
trainer=e[0][0] # A PokeBattle_Trainer object of the loaded trainer
items=e[0][1] # An...
For the code you gave me where would I put that in the scripts. I got an error when I copied and paste the script you gave to me under PField_EncounterModifiers. When I went to test it gave me this error.
SCRIPT 'PField_EncounterModifiers'line 113: NameError occurred.
Undefined local variable...
I know that to many people it is very easy to understand the code but if you could please just leave an example of how to set up the code properly. So here is the code that it uses for wild encounters which I got down.
Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if...
Hello! In the script for Pokemon encounter modifiers there is a way to manipulate the levels of Pokemon for wild battles. I was able to figure out how to use that pretty easy. However under that same script is a way to do the same for trainers. However I can not figure out how to make it work...