When I try it, i get this:
Code:
---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError
Message: Script error within event 5, map 52 (Test Map):
(eval):5:in `pbExecuteScript'uninitialized constant Interpreter::Sassy
***Full script:
pbAddPokemon(PBSpecies::MEW,20)
p=$Trainer.party[
$Trainer.party.length-1]
p.setGender(true)
p.iv = 2,7,3,4,9,8
p.nature = Sassy
Interpreter:238:in `pbExecuteScript'
Interpreter:1652:in `eval'
Interpreter:238:in `pbExecuteScript'
Interpreter:1652:in `command_355'
Interpreter:496:in `execute_command'
Interpreter:190:in `update'
Interpreter:104:in `loop'
Interpreter:195:in `update'
Scene_Map:100:in `update'
Scene_Map:98:in `loop'
Interpreter:279:in `pbExecuteScript'
Interpreter:1652:in `command_355'
Interpreter:496:in `execute_command'
Interpreter:190:in `update'
Interpreter:104:in `loop'
Interpreter:195:in `update'
Scene_Map:100:in `update'
Scene_Map:98:in `loop'
Scene_Map:111:in `update'
Scene_Map:67:in `main'
This exception was logged in errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
I have 2008 Summer (i don't know, when) release.
The problem comes because the game doesn't work with the names of the natures. It works with the numbers of the natures. Also, a pokémon's nature depends on its personal ID number (specifically, the remainder when you divide it by 25). So you'll need to change the personal ID number (but remember that gender also depends on it).
Go into
PokemonMap and search for "
module PBNatures" (I know, odd place to put it). You'll see the numbers that relate to each nature. Bear those in mind.
Next, go into
PokemonScreen and search for where the debug option defines "
Set Nature". You'll see something like the following:
Code:
oldgender=pkmn.gender
2000.times do
pkmn.personalID&=0xFFFF0000
pkmn.personalID|=rand(65536)
pkmn.personalID-=pkmn.personalID%25
pkmn.personalID+=command
break if pkmn.gender==oldgender
end
pkmn.calcStats
Note that this randomises the personal ID number, and spews out the first result that won't change the gender.
Your task is to modify this chunk of code to take in the number of the nature you want, and provide a new personal ID number that'll give you that nature. If you only want to set the nature of a given pokémon once or twice, just use the (slightly modified) code as is (i.e. put it straight into the event that gives the player the pokémon). If you're planning on setting the nature of a bunch of pokémon throughout your game, your best bet would be to create a def similar to "
setGender" in
PokeBattle_Pokemon, but which sets the nature instead. This chunk of code turns into that def, again with a bit of cosmetic surgery.
hello, I need the script of the dual screen script for pokemon rpg maker xp
thanks in advance
.........................................Up
You don't
need that at all. You
want it.
No one's going to just give it to you, since those who have it have put a lot of work into making it. They might make an exception if they know you, and if you've proven that you're worthy of having it... but you haven't (yet).