ID:263229
 
Code:
mob
var/Team[6]
client
Center()
for(var/mob/Pokemon/P in usr.Team)
usr<<image(P,usr.loc)


Problem description:That works, but it displays every Pokemon I have in the list Team. How do I make it to show only one Pokemon in the list? Such as, the first Pokemon, or the second?

mob
var/Team[6]
client
Center()
if(usr.Team.len)
var/mob/Pokemon/P=usr.Team[1]
usr<<image(P,usr.loc)
</DM>
That wll display the first pokemon.
Depends on wyat pokemon you want,
mob
var/Team[6]
client
Center()
switch(Pokemon_picked)
if(1 to 6)
var/P = mob.Team[Pokemon_Picked]
else return
usr<<image(P,mob.loc)


Now you just have to make it so it sends whatever number of the pokemon slot picked to Center.

I have no clue if this would work. It might.
In response to Flame Sage
I've tried that already, it doesn't display anything ><
In response to Dead_Demon
try P.icon in the image()
In response to Mechanios
Nope, still nothing ><;;; If I still had that Pokemon Demo, I could fix it up so instead of displaying the pokemon in the chat box corner, it displays it on the screen. But its been removed from the hub, methinks. I can't find it anywhere...
How would you use the list proc Find? Maybe that will work
In response to Dead_Demon
hmn.. put some world << 1 in there to see if its actualy going through.
In response to Mechanios
Yes, it's goin through all the way. I put world<<"1" three times, one at the start of the if(usr.Team.len), one in the middle, and one at the very end. All three popped up. >> I never knew Pokemon games would be such a hassle