ID:937683
 
(See the best response by Kozuma3.)
Problem description: Hey whoever reads this, I'm trying to make a system what stores all the Datums in a list and whenever you click the verb it displays all the datums in the list. How would I do that? I'm having troubles. Please help, and thanks ;3
var/list/teams = list()

Team
var
name
list/members = list()

New(newName)
name = newName

world
New()
teams += new /Team("Red Bros")
teams += new /Team("Blue Dudes")

mob
verb
Get_Teams()
for(var/Team/t in teams)
src << t

for(var/mob/m in t.members)
src << m
Best response
var/list/Universe=list()

Planet
var/name
New(name)
src.name=name

mob
Login()
Universe.Add(new/Planet("Earth"))
Universe.Add(new/Planet("Mars"))
verb/Play_God()
for(var/Planet/P in global.Universe)
src<<"<b>Name:</b> [P.name]"
I meant like a input list where you can choose a datum and then it tells the play about the datum, but I think I can make that .-. lol, Thanks both of y'all (which one to choose D: )

Edit: Figured it out, thanks guys!
Edit #2: I chose Kozuma's post, since I used that to refer too. sorry LA.