qna_rpg
Thread Id: 10748
Thread Name: Following script
#0
Zesk12 16124
Hola que tal ... tengo un problema con el pokemon following script me tira este error al tratar de entrar al sistema de almacenaje pokemon alguien puede ayudarme en decir que es ?

GRACIAS !!! :furia:



Exception: RuntimeError
Message: Script error within event 5, map 661 (Centro Cuidad verde):
Exception: ArgumentError
Message: Section143:664:in `pbStartScreen'wrong number of arguments(2 for 1)
***Full script:
pbPokeCenterPC

Interpreter:239:in `pbExecuteScript'
PokemonFollowingV3:664:in `pbPokeCenterPC'
PokemonFollowingV3:661:in `pbFadeOutIn'
PokemonFollowingV3:661:in `pbPokeCenterPC'
PokemonFollowingV3:645:in `loop'
PokemonFollowingV3:669:in `pbPokeCenterPC'
PokemonFollowingV3:632:in `loop'
PokemonFollowingV3:677:in `pbPokeCenterPC'
(eval):1:in `pbExecuteScript'
Interpreter:1583:in `eval'

Interpreter:274:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
#1
Rafa 0
En el script PokemonFollowingCharacterV3 busca estas líneas (más o menos por la línea 530):


def pbPokeCenterPC
Audio.se_play("Audio/SE/computeropen.wav")
Kernel.pbMessage(_INTL("{1} booted up the PC.",$Trainer.name))
loop do
commands=[]
if $PokemonGlobal.seenStorageCreator
commands.push(_INTL("{1}'S PC",pbGetStorageCreator))
else
commands.push(_INTL("SOMEONE'S PC"))
end
commands.push(_INTL("{1}'s PC",$Trainer.name))
commands.push(_INTL("LOG OFF"))
command=Kernel.pbMessage(_INTL("Which PC should be accessed?"),commands,commands.length)
if command==0
Audio.se_play("Audio/SE/accesspc.wav")
Kernel.pbMessage(_INTL("The Pokémon Storage System was opened."))
loop do
command=Kernel.pbMessage(_INTL("What do you want to do?"),[
_INTL("WITHDRAW POKéMON"),
_INTL("DEPOSIT POKéMON"),
_INTL("MOVE POKéMON"),
_INTL("SEE YA!")
],4)
if command<3
if command==0 && $Trainer.party.length>=6
Kernel.pbMessage(_INTL("Your party is full!"))
next
end
if command==1 && $Trainer.pokemonCount<=1
Kernel.pbMessage(_INTL("Can't deposit the last Pokémon!"))
next
end
pbFadeOutIn(99999){
scene=PokemonStorageScene.new
screen=PokemonStorageScreen.new(scene,$PokemonStorage)
screen.pbStartScreen($Trainer.party,command)
}
else
break
end
end
elsif command==1
Audio.se_play("Audio/SE/accesspc.wav")
Kernel.pbMessage(_INTL("Accessed {1}'s PC.",$Trainer.name))
pbTrainerPCMenu
else
break
end
end
Audio.se_play("Audio/SE/computerclose.wav")
#Pokemon Following Character
$PokemonTemp.dependentEvents.refresh_sprite(true)
end

Y en su lugar debes de poner estas:


def pbPokeCenterPC
Kernel.pbMessage(_INTL("\\se[computeropen]{1} booted up the PC.",$Trainer.name))
loop do
commands=PokemonPCList.getCommandList()
command=Kernel.pbMessage(_INTL("Which PC should be accessed?"),
commands,commands.length)
if !PokemonPCList.callCommand(command)
break
end
end
pbSEPlay("computerclose")
$PokemonTemp.dependentEvents.refresh_sprite(true)
end
#2
Zesk12 16124
hombre rafa tu siempre me salvas !!!! no se cuantas veces te he agradecido !!!! en verdad muchisimas GRACIAS !!! :D