- 465
- Posts
- 8
- Years
- Seen Jun 17, 2024
First off this isnt Golisiopods great looking boss/totem battle script, due to the ebs issues and now focusing on updating to v18.
this is the one referenced here: Forum Post
and here: Actual script
First off its in spanish but i've converted it, but i felt i'd link both so you know what im on about. i'll put my actual translated and current script at the end.
looking at it, its a modified 2v2 battle and this works with EBS (what im using) now its not actually "this isnt working" it is just with some kinda annoying and one big issue.
First bug, for whatever reason you need to have 2 party members, this makes sense but it also applies to when with a partner (maybe im setting it up wrong but i have the player with one pokemon and a partner, and it makes it a single battle). easily fixed if you give the player another pokemon but still.
The bigger and second bug, is the fact if you lose the battle continues on infinitely, im not sure why but might be a v16 > v17 and i didnt fully update it, i did make some changes when trying to fix the first bug with were it references double battles, and updated that to v17.
i cant think whats causing the second, have not much idea on the first but i feel its something with me setting up the partner wrong, but i'll test a wild double battle with a partner and only 1 pokemon aswell to troubleshoot. any ideas will help, code below is my exact code for it (not changed much from the actual script page, if you translate it with a google translate on the page, how to set it up is there, but basically need a boss switch before you call it or it'll break stuff, aswell as the setup on checking battles so it can be 2v1) the only difference minus translation is the pbafterbattle stuff, as it was all listed out like in v16.
so heres my current code for it.
this is the one referenced here: Forum Post
and here: Actual script
First off its in spanish but i've converted it, but i felt i'd link both so you know what im on about. i'll put my actual translated and current script at the end.
looking at it, its a modified 2v2 battle and this works with EBS (what im using) now its not actually "this isnt working" it is just with some kinda annoying and one big issue.
First bug, for whatever reason you need to have 2 party members, this makes sense but it also applies to when with a partner (maybe im setting it up wrong but i have the player with one pokemon and a partner, and it makes it a single battle). easily fixed if you give the player another pokemon but still.
The bigger and second bug, is the fact if you lose the battle continues on infinitely, im not sure why but might be a v16 > v17 and i didnt fully update it, i did make some changes when trying to fix the first bug with were it references double battles, and updated that to v17.
i cant think whats causing the second, have not much idea on the first but i feel its something with me setting up the partner wrong, but i'll test a wild double battle with a partner and only 1 pokemon aswell to troubleshoot. any ideas will help, code below is my exact code for it (not changed much from the actual script page, if you translate it with a google translate on the page, how to set it up is there, but basically need a boss switch before you call it or it'll break stuff, aswell as the setup on checking battles so it can be 2v1) the only difference minus translation is the pbafterbattle stuff, as it was all listed out like in v16.
so heres my current code for it.
Spoiler:
Code:
def pbBossFight(species,level,form=0,variable=nil,canescape=true,canlose=false)
if (Input.press?(Input::CTRL) && $DEBUG) || $Trainer.pokemonCount==0
if $Trainer.pokemonCount>0
Kernel.pbMessage(_INTL("SKIPPING BATTLE..."))
end
pbSet(variable,1)
$PokemonGlobal.nextBattleBGM=nil
$PokemonGlobal.nextBattleME=nil
$PokemonGlobal.nextBattleBack=nil
return true
end
if species.is_a?(String) || species.is_a?(Symbol)
species = getID(PBSpecies,species)
end
currentlevels = []
for i in $Trainer.party
currentlevels.push(i.level)
end
genwildpoke = pbGenerateWildPokemon(species,level)
genwildpoke.form = form
Events.onStartBattle.trigger(nil,genwildpoke)
scene = pbNewBattleScene
if $PokemonGlobal.partner
othertrainer = PokeBattle_Trainer.new($PokemonGlobal.partner[1],$PokemonGlobal.partner[0])
othertrainer.id = $PokemonGlobal.partner[2]
othertrainer.party = $PokemonGlobal.partner[3]
combinedParty = []
for i in 0...$Trainer.party.length
combinedParty[i] = $Trainer.party[i]
end
for i in 0...othertrainer.party.length
combinedParty[6+i] = othertrainer.party[i]
end
battle = PokeBattle_Battle.new(scene,combinedParty,[genwildpoke],[$Trainer,othertrainer],nil)
battle.fullparty1 = true
else
battle = PokeBattle_Battle.new(scene,$Trainer.party,[genwildpoke],$Trainer,nil)
battle.fullparty1 = false
end
battle.internalbattle = true
battle.doublebattle = battle.pbDoubleBattleAllowed?()
battle.cantescape = !canescape
battle.cantescape = !canescape
pbPrepareBattle(battle)
decision = 0
pbBattleAnimation(pbGetWildBattleBGM(species),2,[genwildpoke]) {
pbSceneStandby {
decision = battle.pbStartBattle(canlose)
}
pbAfterBattle(decision,canlose)
}
Input.update
pbSet(variable,decision)
return (decision!=2 && decision!=5)
end