###########################################
#### Config Script For Your Game Here ####
###########################################
Animation_Come_In = 447 #<= ID of Animation When Pokemon Come In PokeBall
Animation_Come_Out = 446 #<= ID of Animation When Pokemon Come Out PokeBall
Default_Following_Pokemon_Number = 1 #<= Default Number Of Following Pokemon
Pokemon_1_ID = 142 #<= ID Of Event Use To Make First Pokemon, Should Over 200
Pokemon_2_ID = 143 #<= ID Of Event Use To Make Second Pokemon, Should Over 200
Pokemon_3_ID = 144 #<= ID Of Event Use To Make Third Pokemon, Should Over 200
Pokemon_4_ID = 145 #<= ID Of Event Use To Make Fourth Pokemon, Should Over 200
Pokemon_5_ID = 146 #<= ID Of Event Use To Make Fifth Pokemon, Should Over 200
Pokemon_6_ID = 147 #<= ID Of Event Use To Make Sixth Pokemon, Should Over 200
Common_Event_1 = 3 #<= ID of Common Event When You Talk To First Pokemon
Common_Event_2 = 3 #<= ID of Common Event When You Talk To Second Pokemon
Common_Event_3 = 3 #<= ID of Common Event When You Talk To Third Pokemon
Common_Event_4 = 3 #<= ID of Common Event When You Talk To Fourth Pokemon
Common_Event_5 = 3 #<= ID of Common Event When You Talk To Fifth Pokemon
Common_Event_6 = 3 #<= ID of Common Event When You Talk To Sixth Pokemon
#####################################################
#### Pokemon Following Character v2.0 By Help-14 ####
#####################################################
def auto_change_with_animation
if $pokenum==nil
$pokenum = Default_Following_Pokemon_Number
end
if $pokenum>=1
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
if $pokenum==1
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent0").x,pbGetDependency("Dependent0").y)
end
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,$Trainer.party[0].name.to_s+".png",0,2,0])
else
if $pokenum==0
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent0").x,pbGetDependency("Dependent0").y)
end
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent0"), "Dependent6", Common_Event_1)
Kernel.pbRemoveDependency2("Dependent0")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent0", Common_Event_1)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=2 && $Trainer.party.length >= 2
if $pokenum==2
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent1").x,pbGetDependency("Dependent1").y)
end
pbMoveRoute(pbGetDependency("Dependent1"),[PBMoveRoute::Graphic,$Trainer.party[1].name.to_s+".png",0,2,0])
else
if $pokenum==0 && $Trainer.party.length >= 2
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent1").x,pbGetDependency("Dependent1").y)
end
pbMoveRoute(pbGetDependency("Dependent1"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent1"), "Dependent6", Common_Event_2)
Kernel.pbRemoveDependency2("Dependent1")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent1", Common_Event_2)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=3 && $Trainer.party.length >= 3
if $pokenum==3
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent2").x,pbGetDependency("Dependent2").y)
end
pbMoveRoute(pbGetDependency("Dependent2"),[PBMoveRoute::Graphic,$Trainer.party[2].name.to_s+".png",0,2,0])
else
if $pokenum==0 && $Trainer.party.length >= 3
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent2").x,pbGetDependency("Dependent2").y)
end
pbMoveRoute(pbGetDependency("Dependent2"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent2"), "Dependent6", Common_Event_3)
Kernel.pbRemoveDependency2("Dependent2")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent2", Common_Event_3)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=4 && $Trainer.party.length >= 4
if $pokenum==4
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent3").x,pbGetDependency("Dependent3").y)
end
pbMoveRoute(pbGetDependency("Dependent3"),[PBMoveRoute::Graphic,$Trainer.party[3].name.to_s+".png",0,2,0])
else
if $pokenum==0 && $Trainer.party.length >= 4
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent3").x,pbGetDependency("Dependent3").y)
end
pbMoveRoute(pbGetDependency("Dependent3"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent3"), "Dependent6", Common_Event_4)
Kernel.pbRemoveDependency2("Dependent3")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent3", Common_Event_4)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=5 && $Trainer.party.length >= 5
if $pokenum==5
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent4").x,pbGetDependency("Dependent4").y)
end
pbMoveRoute(pbGetDependency("Dependent4"),[PBMoveRoute::Graphic,$Trainer.party[4].name.to_s+".png",0,2,0])
else
if $pokenum==0 && $Trainer.party.length >= 5
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent4").x,pbGetDependency("Dependent4").y)
end
pbMoveRoute(pbGetDependency("Dependent4"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent4"), "Dependent6", Common_Event_5)
Kernel.pbRemoveDependency2("Dependent4")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent4", Common_Event_5)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum==6 && $Trainer.party.length == 6
$scene.spriteset.addUserAnimation(Animation_Come_Out,pbGetDependency("Dependent5").x,pbGetDependency("Dependent5").y)
pbMoveRoute(pbGetDependency("Dependent5"),[PBMoveRoute::Graphic,$Trainer.party[5].name.to_s+".png",0,2,0])
else
if $pokenum==0 && $Trainer.party.length == 6
$scene.spriteset.addUserAnimation(Animation_Come_In,pbGetDependency("Dependent5").x,pbGetDependency("Dependent5").y)
end
pbMoveRoute(pbGetDependency("Dependent5"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent5"), "Dependent6", Common_Event_6)
Kernel.pbRemoveDependency2("Dependent5")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent5", Common_Event_6)
Kernel.pbRemoveDependency2("Dependent6")
end
################################################################################
def change_number
if $pokenum==nil
$pokenum=Default_Following_Pokemon_Number
end
$pokenum+=1
if $pokenum==7
$pokenum=0
end
end
################################################################################
def auto_change_without_animation
if $pokenum==nil
$pokenum = Default_Following_Pokemon_Number
end
if $pokenum>=1
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,$Trainer.party[0].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent0"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent0"), "Dependent6", Common_Event_1)
Kernel.pbRemoveDependency2("Dependent0")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent0", Common_Event_1)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=2 && $Trainer.party.length >= 2
pbMoveRoute(pbGetDependency("Dependent1"),[PBMoveRoute::Graphic,$Trainer.party[1].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent1"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent1"), "Dependent6", Common_Event_2)
Kernel.pbRemoveDependency2("Dependent1")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent1", Common_Event_2)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=3 && $Trainer.party.length >= 3
pbMoveRoute(pbGetDependency("Dependent2"),[PBMoveRoute::Graphic,$Trainer.party[2].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent2"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent2"), "Dependent6", Common_Event_3)
Kernel.pbRemoveDependency2("Dependent2")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent2", Common_Event_3)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=4 && $Trainer.party.length >= 4
pbMoveRoute(pbGetDependency("Dependent3"),[PBMoveRoute::Graphic,$Trainer.party[3].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent3"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent3"), "Dependent6", Common_Event_4)
Kernel.pbRemoveDependency2("Dependent3")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent3", Common_Event_4)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum>=5 && $Trainer.party.length >= 5
pbMoveRoute(pbGetDependency("Dependent4"),[PBMoveRoute::Graphic,$Trainer.party[4].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent4"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent4"), "Dependent6", Common_Event_5)
Kernel.pbRemoveDependency2("Dependent4")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent4", Common_Event_5)
Kernel.pbRemoveDependency2("Dependent6")
if $pokenum==6 && $Trainer.party.length == 6
pbMoveRoute(pbGetDependency("Dependent5"),[PBMoveRoute::Graphic,$Trainer.party[5].name.to_s+".png",0,2,0])
else
pbMoveRoute(pbGetDependency("Dependent5"),[PBMoveRoute::Graphic,"nil.png",0,2,0])
end
Kernel.pbAddDependen(pbGetDependency("Dependent5"), "Dependent6", Common_Event_6)
Kernel.pbRemoveDependency2("Dependent5")
Kernel.pbAddDependen(pbGetDependency("Dependent6"), "Dependent5", Common_Event_6)
Kernel.pbRemoveDependency2("Dependent6")
end
################################################################################
def creat_6_dependent_event
Kernel.pbAddDependency2(Pokemon_1_ID, "Dependent0", Common_Event_1)
Kernel.pbAddDependency2(Pokemon_2_ID, "Dependent1", Common_Event_2)
Kernel.pbAddDependency2(Pokemon_3_ID, "Dependent2", Common_Event_3)
Kernel.pbAddDependency2(Pokemon_4_ID, "Dependent3", Common_Event_4)
Kernel.pbAddDependency2(Pokemon_5_ID, "Dependent4", Common_Event_5)
Kernel.pbAddDependency2(Pokemon_6_ID, "Dependent5", Common_Event_6)
auto_change_without_animation
end