Hello all I am making a Morte Chat if u didnt know. Any way I have been trying to make a channles verb so you can add your own channle to a list or click on a diffrent channle to hear someone else play music. Also you can remove your channle from the list too.
So then when some one clicks on your channle on the list you have a verb that plays a song u select to ever mob in the world that is hearing from your channle including your self.
Bellow is what I got so far But I am having trouble with the list part. I wanted to have a Channles list and then add the peoples channles to that list. This would be playchannles. Then just add the add and remove choices. So when I add just add it to the playchannles to add to the Channles list.
But for some reason I am not getting my channle in the Channles list when I add it. Any one know why?
Channles()
var/list/Channles // List of Channles menu
var/list/playchannles // Channles people made
var/savefile/F = new("[usr.key].sav")
F >> playchannles
playchannles = new()
Channles.Add("[playchannles]") // Add Channles made to the list
Channles.Add("Add Channle")
Channles.Add("Remove Channle")
var/channle = input("What channle would you like to hear?","Pick Channle",) in Channles
switch(channle) // Choice of channle
if("Add Channle")
var/namedchannle = input("What would you like to name your channle?","Name Channle",)
playchannles.Add("[namedchannle]") // Add ur channle to the list
F << namedchannle // Save your channle to your_key.sav file
F << playchannles
usr:hear="[namedchannle]"
if("Remove Channle")
F >> namedchannle // Get your channles name
if(namedchannle==isloc(playchannles)) // If your channle is in the list
playchannles -= namedchannle // Take your channle from the list
namedchannle=""
usr:hear="[namedchannle]"
F << namedchannle
else
usr:hear="[channle]" // So you can hear this channle
Play_music()
var/song = input("What song would you like to play?","Play Song",) as sound
var/savefile/F = new("[usr.key].sav")
F >> namedchannle // Get your channle from ur save file.
for(var/mob/M in world) // all Mobs in world
if(M:hear=="[namedchannle]") // If they are on that channle
M << song // They can here you play your song.
</<></<></<>
ID:261442
Mar 30 2002, 3:22 pm
|
|
Mar 30 2002, 3:43 pm
|
|
Channel*
|
In response to ADDiCt
|
|
ADDiCt wrote:
Channel*lol thanks but I could use some help with the code too |
In response to Green Lime
|
|
do you have AIM? i would be happy to help
|
In response to ADDiCt
|
|
ADDiCt wrote:
do you have AIM? i would be happy to helpSorry nope only MSN and ICQ |
In response to Green Lime
|
|
does ICQ support File Transfer? If so, what's your ICQ?
|
In response to ADDiCt
|
|
ADDiCt wrote:
does ICQ support File Transfer? If so, what's your ICQ?I think it does. its 17841949 |