ID:267557
 
Well, I'm just thinking, is it possible to create some sort of a team var, and then have a radio command that only goes out to the team? In theory, would this work?
mob/var/team

mob/verb/radio(t as team, s as text)
t << "[s]"
You'd need something more along the lines of this:

mob/var/list/team = list("Jon88", "Dragon of Ice", "TheOtherKey")

mob/verb/radio(s as text)
team << "[s]"
In response to Jon88
Well, wouldn't this work, also?
mob/var/team

mob/Login()
team = input("Which team?","Teams") in list ("Red","Blue")

mob/verb/radio(s as text)
src.team << s
In response to Dragon of Ice
It needs to send the message to a list of players.
In response to Jon88
Ok, so....
var/global/list/redteam = list()
var/global/list/blueteam = list()
mob/var/team

mob/Login()
input("Which team?","Team") in list("Red","Blue")
if("Red")
redteam += src.key
src.team = readteam
else if("Blue")
blueteam += src.key
src.team = redteam

mob/verb/radio(s as text)
src.team << s
In response to Dragon of Ice
var/global/list/redteam = list()
var/global/list/blueteam = list()
mob/var/team

mob/Login()
switch(input("Which team?","Team") in list("Red","Blue"))
if("Red")
redteam += src
team = "redteam"
if("Blue")
blueteam += src
team = "blueteam"

mob/verb/radio(s as text)
switch(team)
if("redteam")
redteam << s
if("blueteam")
blueteam << s

will work, although there's a better way to do it.
In response to Jon88
Thanks, I'm not using it for a game, just thinking about some things that might be helpful in the future!