I have been trying to fix this for 3 hours, can you help pleaseView attachment 103225
#===============================================================================
SaveData.register_conversion(:deluxe_compatibility) do
game_version 'NEW VERSION NUMBER HERE'
display_title "Adding Essentials Deluxe compatibility"
to_value :player do |player|
tempDexes = player.pokedex.accessible_dexes
player.pokedex.instance_eval do
@seen_forms.each{ |species, data|
for gender in 0..1
for shiny in 0..1
temp = @seen_forms[species][gender][shiny]
@seen_forms[species][gender][shiny] = [temp, []]
end
end
}
end
end
end
Several things are wrong here.Hello. I am trying to make a Giovanni boss fight where mid battle he switches to Ultra Necrozma and I keep getting syntax errors and it's difficult for me to fix them. I have a demo scenario in my midbattle config file that says:
Spoiler:DEMO_ROCKETBOSS_GIOVANNI = {
"ultra" => {
:text => "It's time for my ultimate surprise!",
:bgm => ["Battle! Ultra Necrozma", 3]
},
"lowhp_final_foe" => {
:speech => "My {1} will never give up!",
:playcry => true,
:hp => [2, "{1} is standing its ground!"],
:stats => [:DEFENSE, 2, :SPECIAL_DEFENSE, 2, :SPEED, 2,]
},
"loss" => "NOOOOO!"
}
More things to correct:I then have copy pasted the compressed battle start from the last part of the tutorial and edited it so it would be:
Spoiler:
$PokemonGlobal.nextBattleBGM = "Giovanni"
TrainerBattle.dx_start([:ROCKETBOSS,
"Giovanni"]) noflee => true
:DEMO_ROCKETBOSS_GIOVANNI)
(trainers = [], rules = {}, midbattle = {})
(trainers = []) rules => value {})
Midbattle_Config
. Updating the plugin will overwrite any of your additions.When I load up debug essentials it says that I've only got two plugins in the control panel, but I've added Essentials Deluxe to the plugins folder? Could somebody help?
"strongStyle"
and "agileStyle"
as midbattle keys to allow for things to trigger when a Pokemon enters Strong or Agile styles. (PLA Battle Styles)Midbattle_Config
. Updating the plugin will overwrite any of your additions.Midbattle_Config
: DEMO_ZUD_MECHANICS
, DEMO_FOCUS_METER
, and DEMO_BATTLE_STYLES
. These are to serve as examples of trainer speech that may trigger when activating battle mechanics added by ZUD, Focus Meter System, and the PLA Battle Styles plugins, respectively."focusEnd"
that activates after a trainer's Pokemon uses their Focus. (Focus Meter System)"styleEnd"
that activates after the effects of a Pokemon's battle style ends. (PLA Battle Styles)Midbattle_Config
. Updating the plugin will overwrite any of your additions.:size
deluxe battle rule now properly accepts the "double"
and "triple"
values to set up double or triple battles against a single trainer.Midbattle_Config
. Updating the plugin will overwrite any of your additions. #-------------------------------------------------------------------------------
# WILD BATTLE EXAMPLE #2
#-------------------------------------------------------------------------------
DEMO_DX_TWO = {
# Double battle vs. Latias (Lv. 30) & Latios (Lv. 30)
# Rules:
# -Cannot flee from this battle.
# -Permanent Hail in play.
# -Battle takes place on the "Champion" backdrop.
# -Player partners up with May for this battle.
# Pokemon:
# -Latias has its Nature, Item, Ability, and Moves set.
# -Latios has its Nature, Item, Ability, and Moves set.
# Midbattle:
# -Sets up a scenario where Latios and Latias will flee from
# battle if either one of them faints. The only way to win
# is to KO both Pokemon at the same time.
# -Whenever one of the wild Pokemon are low on HP, it will
# call on its partner for aid, healing back some HP.
#-------------------------------------------------------------------------------
WildBattle.dx_start([:LATIAS, 30, :LATIOS, 30], {
# Rules
:noflee => true,
:weather => :Hail,
:backdrop => "champion",
:partner => [:POKEMONTRAINER_May, "May"]
},
{ # Pokemon
:first => { # Latias
:nature => :MODEST,
:item => :SOULDEW,
:ability => :HEALER,
:moves => [:LIFEDEW, :REFLECT, :HELPINGHAND, :PSYCHIC]
},
:second => { # Latios
:nature => :ADAMANT,
:item => :SOULDEW,
:ability => :FRIENDGUARD,
:moves => [:DRAGONDANCE, :BREAKINGSWIPE, :ZENHEADBUTT, :DRAGONCLAW]
}
},
{ # Midbattle
"lowhp_foe_repeat" => { # Triggers repeatedly whenever an opponent's HP is low due to an attack.
:text => "{1} calls out to its partner with a whimpering cry!",
:playcry => true,
:text_1 => [:Ally, "{1} comes to its partner's aid!"],
:hp => [4, "{1} restored a little HP!"],
},
#-----------------------------------------------------------------------------
"fainted_foe" => { # Triggers when an opponent faints.
:text => [:Ally, "{1} looks devestated by its partner's defeat...",
"It seems to have lost the will to fight.",
"{1} fled!"],
:playsound => "Battle flee",
:endbattle => 3
}
}
)
I am trying to add the double battle to mid battle config but get this error:
[2022-11-14 11:16:17 -0600]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.4]
Error in Plugin: [Essentials Deluxe]
Exception: SyntaxError
Message: [Essentials Deluxe] Midbattle_Config.rb:209: syntax error, unexpected end-of-input, expecting =>
Code:#------------------------------------------------------------------------------- # WILD BATTLE EXAMPLE #2 #------------------------------------------------------------------------------- DEMO_DX_TWO = { # Double battle vs. Latias (Lv. 30) & Latios (Lv. 30) # Rules: # -Cannot flee from this battle. # -Permanent Hail in play. # -Battle takes place on the "Champion" backdrop. # -Player partners up with May for this battle. # Pokemon: # -Latias has its Nature, Item, Ability, and Moves set. # -Latios has its Nature, Item, Ability, and Moves set. # Midbattle: # -Sets up a scenario where Latios and Latias will flee from # battle if either one of them faints. The only way to win # is to KO both Pokemon at the same time. # -Whenever one of the wild Pokemon are low on HP, it will # call on its partner for aid, healing back some HP. #------------------------------------------------------------------------------- WildBattle.dx_start([:LATIAS, 30, :LATIOS, 30], { # Rules :noflee => true, :weather => :Hail, :backdrop => "champion", :partner => [:POKEMONTRAINER_May, "May"] }, { # Pokemon :first => { # Latias :nature => :MODEST, :item => :SOULDEW, :ability => :HEALER, :moves => [:LIFEDEW, :REFLECT, :HELPINGHAND, :PSYCHIC] }, :second => { # Latios :nature => :ADAMANT, :item => :SOULDEW, :ability => :FRIENDGUARD, :moves => [:DRAGONDANCE, :BREAKINGSWIPE, :ZENHEADBUTT, :DRAGONCLAW] } }, { # Midbattle "lowhp_foe_repeat" => { # Triggers repeatedly whenever an opponent's HP is low due to an attack. :text => "{1} calls out to its partner with a whimpering cry!", :playcry => true, :text_1 => [:Ally, "{1} comes to its partner's aid!"], :hp => [4, "{1} restored a little HP!"], }, #----------------------------------------------------------------------------- "fainted_foe" => { # Triggers when an opponent faints. :text => [:Ally, "{1} looks devestated by its partner's defeat...", "It seems to have lost the will to fight.", "{1} fled!"], :playsound => "Battle flee", :endbattle => 3 } } )
" Battle Deluxe/Midbattle_Config script. In here, you will find this module. You can create and store specific mid-battle hashes here, and then simply call on them in your events. For example, in this file, there is a defined hash called DEMO_WILD_ROTOM." I'm trying to make the double battle example a quick call option like the Rotom example and I kind of get what I did wrong now but just to be sure I can have something easy to reference could you please upload a version of the mid battle script with the double battle example included as a quick call option? Thanks and thank you for responding to my first post! (Sorry for the lack of formatting i'm on my phone)
Couldn't help but notice that the script often causes the Pokedex to incorrectly record forms of species that have multiple forms. I've seen cases where the dex will show forms that haven't been seen by the player yet and cases where it wouldn't show forms the player had seen. Notably, the second case happened when the player had seen a male regular Sneasel and then a female Hisuian Sneasel; the Pokedex wouldn't show Hisuan Sneasel at all. Since the dex doesn't show different genders for alternate forms, I figure this might be a factor.
I'm on the current version of Deluxe (v1.1.5), Hotfixes (v1.0.7), and Essentials (v20.1).