This is the line 65 in the code : default_target = default_battler.pbDirectOpposing if default_target.index == default_battler.index
And this is the battle script:
ARTHUR_CHAMPION = {
"BattleEndLoss" =>
{
"setSpeaker" => :Self,
"editWindow" => [nil, "speech hgss 1"]...
Hello! When trying to use the plug-in for making mid-battle scripts, I got this error:
[2025-02-16 16:43:15 +0000]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `index' for nil:NilClass
Backtrace:
[Deluxe Battle Kit] [002] Midbattle...