Hello, I have a problem I have added the script and tried running the test battle but got the error message seen in the picture, in the right of the picture i have added a screenshot of where i save the scripts. https://ibb.co/yRL794d
Hello, I have a problem I have added the script and tried running the test battle but got the error message seen in the picture, in the right of the picture i have added a screenshot of where i save the scripts. https://ibb.co/yRL794d
Hi, I have run the extendtext.exe but the problem is not fixed any ideas??
---------------------------
Error
---------------------------
Script '[Interpreter]' line 246: RuntimeError occurred.
Script error within event 61 (coords 25,12), map 47 (Ruta 21):
Exception: NoMethodError
Message: Mid battle dialogue:1224:in `createProcesses'undefined method `visible' for nil:NilClass
***Full script:
BattleScripting.setInScript("turn0",:Catching_Start)
BattleScripting.setInScript("halfHPOpp",:Catching_Catch)
pbWildBattle(:MAGIKARP,5)
Backtrace:
Interpreter:197:in `pbExecuteScript'
PokeBattle_Animation:9:in `initialize'
Mid battle dialogue:1218:in `initialize'
Mid battle dialogue:1162:in `new'
Mid battle dialogue:1162:in `pbHideOpponent'
Mid battle dialogue:1072:in `display'
Mid battle dialogue:96:in `pbBattleLoop'
Mid battle dialogue:86:in `loop'
Mid battle dialogue:125:in `pbBattleLoop'
Battle_StartAndEnd:302:in `pbStartBattleCore'
---------------------------
Aceptar
---------------------------
Can't help you with this one because you've edited your script and so line 1224 in your version is different from my version. Try looking through your edits and check for anything that's missing. Use text-compare.com if needed. But the simple solution I can give you is don't edit the scripts, use it how it came out of the box, it'll save you and me alot of trouble.After some days using it, now this error pops out of nothing each time I use the script and a dialogue ends:
Can't help you with this one because you've edited your script and so line 1224 in your version is different from my version. Try looking through your edits and check for anything that's missing. Use text-compare.com if needed. But the simple solution I can give you is don't edit the scripts, use it how it came out of the box, it'll save you and me alot of trouble.
---------------------------
Error
---------------------------
Script '[Interpreter]' line 246: RuntimeError occurred.
Script error within event 61 (coords 25,12), map 47 (Ruta 21):
Exception: NoMethodError
Message: Mid battle dialogue:1236:in `createProcesses'undefined method `visible' for nil:NilClass
***Full script:
BattleScripting.setInScript("turnStart0",:Catching_Start)
BattleScripting.setInScript("halfHPOpp",:Catching_Catch)
pbWildBattle(:MAGIKARP,5)
Backtrace:
Interpreter:197:in `pbExecuteScript'
PokeBattle_Animation:9:in `initialize'
Mid battle dialogue:1230:in `initialize'
Mid battle dialogue:1174:in `new'
Mid battle dialogue:1174:in `pbHideOpponent'
Mid battle dialogue2:162
Mid battle dialogue2:146:in `call'
Mid battle dialogue:1084:in `display'
Mid battle dialogue:108:in `pbBattleLoop'
Mid battle dialogue:86:in `loop'
---------------------------
Aceptar
---------------------------
Try putting the script below any other battle related scripts that you may have in your game.
The script has been updated to v1.6
There have been various bugfixes to the script. Mainly compatibility issues.
The format for BattleScripting.copy has changed, please make sure you update your script command accordingly.
The instructions have been updated as well. Please check them out.
does it remove its compatibility with zud plugin?
def pbStartBattleSendOut(sendOuts)
case TrainerDialogue.eval("battleStart")
when -1
pbDisplayPaused(_INTL("Oh! A wild {1} appeared!",foeParty[0].name))
case TrainerDialogue.eval("battleStart")
when -1
# Max Raids - Alters encounter text. (ZUD)
if defined?(MAXRAID_SWITCH) && $game_switches[MAXRAID_SWITCH]
text = "Dynamaxed"
text = "Gigantamax" if foeParty[0].gmaxFactor?
text = "Eternamax" if isConst?(foeParty[0].species,PBSpecies,:ETERNATUS)
pbDisplayPaused(_INTL("Oh! A {1} {2} lurks in the den!",text,foeParty[0].name))
else
pbDisplayPaused(_INTL("Oh! A wild {1} appeared!",foeParty[0].name))
end
def pbReduceDamage(user,target)
return if target.damageState.iceface
# Max Raids - Damage thresholds for triggering shields. (ZUD)
damage = pbReduceMaxRaidDamage(target,damage)
im getting this error when try to do brock battle event
There is a "TrainerDialogue.copy" somewhere, replace it with "BattleScripting.copy".
TrainerDialogue.copy in not in any script
$PokemonGlobal.nextBattleBGM="BrockBattle"
# Simple text change for showing that this is the 2nd time you're challening Brock
TrainerDialogue.set("battleStart","You challenge Gym Leader Brock for the 2nd time!")
BattleScripting.setInScript("last",:Brock_LastPlayer)
TrainerDialogue.set("turnStart0",Proc.new{|battle|
# At the start of the Battle, set Geodude's item to Ring Target.
# Allows the Pikachu to hit Geodude with Electric Attacks. Plot Armor 100
battle.battlers[1].item=getID(PBItems,:RINGTARGET)
})
BattleScripting.setInScript("smlDamageOpp",:Brock_MockPlayer)
BattleScripting.setInScript("recall",:Brock_GiveUp)
TrainerDialogue.set("fainted","Are you giving up already, \\PN?")
BattleScripting.setInScript("halfHP,2",:Brock_Sprinklers)
TrainerDialogue.copy("lowHP,2","halfHP,2")
BattleScripting.setInScript("lowHPOpp,2",:Brock_Forfeit)
party = []
species = [:PIDGEOTTO,:PIKACHU]
for id in species
party.push(getConst(PBSpecies,id)) if hasConst?(PBSpecies,id)
end
# Species IDs of the Pokémon to be created
for i in 0...$Trainer.party.length
$Trainer.party[i]=nil
end
$Trainer.party.compact!
for i in 0...party.length
species = party[i]
$Trainer.party[i] = pbNewPkmn(species,12)
$Trainer.seen[species] = true # Set this species to seen and owned
$Trainer.owned[species] = true
end
$Trainer.party[1].pbLearnMove(:AGILITY)
$Trainer.party[1].pbLearnMove(:SLAM)
$Trainer.party[1].pbLearnMove(:IRONTAIL)
$Trainer.party[1].pbLearnMove(:THUNDERBOLT)
$Trainer.party[0].pbLearnMove(:GUST)
$Trainer.party[0].pbLearnMove(:WINGATTACK)
$Trainer.party[0].pbLearnMove(:SANDATTACK)
$Trainer.party[0].pbLearnMove(:TACKLE)