- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
Doing that means I can now enter battles without crashing, nice. But it's still using the vanilla in-battle Pokemon Summary Screen.
Doing that means I can now enter battles without crashing, nice. But it's still using the vanilla in-battle Pokemon Summary Screen.
Could a "Lite" version of this be made that just affects how your own move selection options look in-battle, without making any changes to the pokemon select screen or anything else?
@sprites["fightwindow"]=FightMenuDisplay.new(nil,@viewport)
for i in 0...6
modparty.push(party[partypos[i]])
end
if $Trainer.partyplus>=1
for i in 0...$Trainer.partyplus
modparty.push(party[partypos[i]])
end
else
for i in 0...6
modparty.push(party[partypos[i]])
end
end
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 30 (coords 27,5), map 3 (AA's house):
Exception: ArgumentError
Message: morepokemonparty:1691:in `>='comparison of String with 1 failed
***Full script:
pkmn = pbGenPkmn(:PIKACHU,1)
pbAddForeignPokemon(pkmn)
Interpreter:243:in `pbExecuteScript'
morepokemonparty:1691:in `pbAddForeignPokemon'
(eval):2:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\MYNAME\Saved Games\Pokemon Essentials\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 31 (coords 28,5), map 3 (AA's house):
Exception: ArgumentError
Message: PartyPlusv2:1691:in `>='comparison of String with 1 failed
***Full script:
$Trainer.partyplus='30'
pkmn = pbGenPkmn(:PIKACHU,1)
pbAddForeignPokemon(pkmn)
Interpreter:243:in `pbExecuteScript'
PartyPlusv2:1691:in `pbAddForeignPokemon'
(eval):3:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\Jason\Saved Games\Pokemon Essentials\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
I have changed USE_NEW_SUMMARY to false, and changed the modparty.push script as instructed. My new error is:
Is this new error a step in the right direction? I have both PartyPlus and Improved Battle Menu scrips in separate newly-inserted script blocks above Main. Should I put PartyPlus on top or IBM? And should these script blocks have names?
EDIT:
I tried combining my "set party size" NPC and "Give me a pikachu" NPC, didn't help.
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 18 (coords 30,5), map 3 (AA's house):
Exception: NoMethodError
Message: IBM:358:in `refresh'undefined method `battlers' for #<Viewport:0xfafc430>
***Full script:
pbTrainerBattle(:CAMPER,"Liam",_I("A very good battle, indeed."),false,0,false,0)
Interpreter:243:in `pbExecuteScript'
IBM:340:in `initialize'
IBM:200:in `new'
IBM:200:in `initialize'
PartyPlusv2:3371:in `new'
PartyPlusv2:3371:in `pbStartBattle'
PartyPlusv2:2668:in `pbStartBattleCore'
PartyPlusv2:2564:in `pbStartBattle'
PartyPlusv2:2631:in `pbTrainerBattle'
PartyPlusv2:2630:in `pbSceneStandby'
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:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\MYNAME\Saved Games\Pokemon Essentials\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: RuntimeError
Message: Script error within event 18 (coords 30,5), map 3 (AA's house):
Exception: NoMethodError
Message: IBM:358:in `refresh'undefined method `battlers' for #<Viewport:0xfaf72e0>
***Full script:
pbTrainerBattle(:CAMPER,"Liam",_I("A very good battle, indeed."),false,0,false,0)
Interpreter:243:in `pbExecuteScript'
IBM:340:in `initialize'
IBM:200:in `new'
IBM:200:in `initialize'
PartyPlusv2:3371:in `new'
PartyPlusv2:3371:in `pbStartBattle'
PartyPlusv2:2668:in `pbStartBattleCore'
PartyPlusv2:2564:in `pbStartBattle'
PartyPlusv2:2631:in `pbTrainerBattle'
PartyPlusv2:2630:in `pbSceneStandby'
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:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
This exception was logged in
C:\Users\Jason\Saved Games\Pokemon Essentials\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
I have made the changes everywhere, to all 3 places in the code that try to get my party. (i think that's what the code does)
Those parts of the code now use your modified code, but I'm still getting the same bug whenever I try to battle someone with my full party of thirty pokemon VS someone with only two.
Is there something extra I need to code onto NPC battles?
wonderful script, thanks for share!
i did some edits to look like HGSS style
Spoiler:![]()
![]()
![]()