ID:263227
 
Code:
obj
Item
Starters
Bulbasaur
icon = 'Pokeballs.dmi'
icon_state = "Pokeball"
verb
Grab_Starter()
set src in oview(1)
usr<<"You grabbed [src]"
usr.Team.Add(/mob/Pokemon/P001)



mob
var
Team[6]

mob
Stat()
statpanel("Inventory",contents)
stat("Team",Team)


mob
verb
Release()
for(var/mob/M in usr.Team)
new M
M.loc = usr.loc


Problem description:The Pokemon doesn't appear in the statpanel when I grab it, and when I hit Release, it doesn't spawn at my location.

mob
var
list
mob
team = new/list()
mob
Stat()
statpanel("Inventory",contents)
statpanel("Team")
for(var/mob/E in team) stat(E)

obj
Item
Starters
Bulbasaur
icon = 'Pokeballs.dmi'
icon_state = "Pokeball"
verb
Grab_Starter()
set src in oview(1)
usr << "You grabbed [src]"
usr.team += new/mob/Pokemon/P001

mob
verb
Release()
var/mob/M = input("pick a thinge to feed to the wolfs (release)","bye bye pokemon") in team
if(istype(M,/mob/Pokemon))
M.loc = locate(src.x,src.y,src.z)
team -= M
In response to Zmadpeter
Forgot max len should be 6, release as in let your pokemon WALK, not go away (from as far as I see).

As for the topic starter, don't use Add() unless you're adding multiple things.