else if(ChooseMethod=="Deposit Pokemon")
if(P.Pokemon.len==1)
P.Talk("You need at least 1 POKeMON to accompany you!",null,"PC","Talking")
TurnOnPC(P)
return
var/mob/Pokemon/E=input(P,"What Pokemon do you wish to deposit?","Deposit Pokemon")as null|anything in P.Pokemon
if(!E) {TurnOnPC(P);return}
P.Talk("Deposited [uppertext(E.name)] to [uppertext(P.CurrentBox)]!",null,"PC","Talking")
P.Pokemon.Remove(E)
P.Poke_Box[P.CurrentBox]+=E
for(var/mob/Pokemon/m in P.Poke_Box[P.CurrentBox]) P<<m.name
TurnOnPC(P)
else if(ChooseMethod=="Withdraw Pokemon")
if(P.Pokemon.len==6)
P.Talk("Your POKeMON party is full!",null,"PC","Talking")
TurnOnPC(P)
return
var/mob/Pokemon/E=input(P,"What Pokemon do you wish to withdraw","Withdraw Pokemon")as null|anything in P.Poke_Box[P.CurrentBox]
if(!E) {TurnOnPC(P);return}
P.Talk("Withdrew [uppertext(E.name)]!",null,"PC","Talking")
P.Poke_Box[P.CurrentBox]-=E
P.Pokemon.Add(E)
TurnOnPC(P)
Problem description:
Whenever I try to deposit a Pokemon into a Box in the PC, it isn't stored into the selected Box.
- GhostAnime