ID:141505
 
I can whisper but after that i whisper i press on the name of the player and then the message dont pop up i dont know what to do so plzzzzzzzzzzz someone help me (it a dbz game)
My Byond Key Is : Shayvguy1222

mob/var/whispers_off = 0
mob/PC/verb/Whisper()
set category = "Channels"
var/list/L
L = list("font size")
var/varPeople = list()

if(World_Mute)
usr << "The world is muted"
return

if(Channel_Mute && !src.GMLevel)
src << "All Chat Channels are Muted!"
return

if(usr.muted)
usr << "You are muted"
return

for(var/mob/PC/M in world)
if(!M.whispers_off)
if(M.key) varPeople += M



var/varTo = input("Who would you like to Whisper?","Whisper") in varPeople + list("Cancel")

if(varTo == "Cancel")
return

var/varSay = input("What would you like to say to [varTo]?","Whisper") as text|null

if(src.muted)
src << "You have been muted!"
return

for(var/X in L)
if(findtext(varSay,X))
alert("You may not change your font size.")
return

if(!varSay)
spawn() alert("Your message may not be blank.")
return

if(lentext(varSay) > 750)
spawn() alert("Your message can not exceed 750 characters.")
varSay = copytext(varSay,1,750)

if(!varTo)return
if(usr in varTo:Ignored)
usr << "[varTo] is ignoring you, you may not whisper them."
return

src << "To [varTo:name]: [varSay]"

if(src.GMLevel > 0)
varTo << "(GM) [src.name] Whispers: [varSay]"
else
varTo << "[src.name] Whispers: [varSay]"




src.afk_time = 0

mob/Topic(href,href_list[])
switch(href_list["action"])
if("Whisper")
var/message = input("What would you like to reply?","Whisper") as null|text
if(!message)
spawn() alert("Your message may not be blank.")
return

if(usr.GMLevel >= 1)
src << "(GM) [usr.name] Whispers: [message]"
usr << "To [src.name]: [message]"
else
src << "[usr.name] Whispers: [message]"
usr << "To [src.name]: [message]"

. = ..()
Please use the dm /dm HTML tags >_>
In response to Spunky_Girl
what you mean ???
i`k kind of new in this coding stuff so help me.
In response to Shayvguy1222
Shayvguy1222 wrote:
what you mean ???

What he meant was to embed (surround) your code snippet in "DM tags" in order to improve readability:
<dm>
Code Snippet
</dm>

Like this:
mob/var/whispers_off = 0
mob/PC/verb/Whisper()
set category = "Channels"
var/list/L
L = list("font size")
var/varPeople = list()

if(World_Mute)
usr << "The world is muted"
return

if(Channel_Mute && !src.GMLevel)
src << "All Chat Channels are Muted!"
return

if(usr.muted)
usr << "You are muted"
return

for(var/mob/PC/M in world)
if(!M.whispers_off)
if(M.key) varPeople += M



var/varTo = input("Who would you like to Whisper?","Whisper") in varPeople + list("Cancel")

if(varTo == "Cancel")
return

var/varSay = input("What would you like to say to [varTo]?","Whisper") as text|null

if(src.muted)
src << "You have been muted!"
return

for(var/X in L)
if(findtext(varSay,X))
alert("You may not change your font size.")
return

if(!varSay)
spawn() alert("Your message may not be blank.")
return

if(lentext(varSay) > 750)
spawn() alert("Your message can not exceed 750 characters.")
varSay = copytext(varSay,1,750)

if(!varTo)return
if(usr in varTo:Ignored)
usr << "<font color=red>[varTo] is ignoring you, you may not whisper them."
return

src << "<font color = purple>To [varTo:name]: [varSay]"

if(src.GMLevel > 0)
varTo << "<font color = #F819F5>(GM) <font color = blue><a href=?src=\ref[src];action=Whisper>[src.name]</a></font> Whispers: [varSay]"
else
varTo << "<font color = #F819F5><font color = blue><a href=?src=\ref[src];action=Whisper>[src.name]</a></font> Whispers: [varSay]"




src.afk_time = 0

mob/Topic(href,href_list[])
switch(href_list["action"])
if("Whisper")
var/message = input("What would you like to reply?","Whisper") as null|text
if(!message)
spawn() alert("Your message may not be blank.")
return

if(usr.GMLevel >= 1)
src << "<font color = #F819F5>(GM) <font color = blue><a href=?src=\ref[usr];action=Whisper>[usr.name]</a></font> Whispers: [message]"
usr << "<font color = purple>To [src.name]: [message]"
else
src << "<font color = #F819F5><font color = blue><a href=?src=\ref[usr];action=Whisper>[usr.name]</a></font> Whispers: [message]"
usr << "<font color = purple>To [src.name]: [message]"

. = ..()
Nice rebirth ripped code, though thats a terrible way to set up a whisper system anyway.
In response to Shayvguy1222
ok now what i need to do to fix it


mob/var/whispers_off = 0
mob/PC/verb/Whisper()
set category = "Channels"
var/list/L
L = list("font size")
var/varPeople = list()

if(World_Mute)
usr << "The world is muted"
return

if(Channel_Mute && !src.GMLevel)
src << "All Chat Channels are Muted!"
return

if(usr.muted)
usr << "You are muted"
return

for(var/mob/PC/M in world)
if(!M.whispers_off)
if(M.key) varPeople += M



var/varTo = input("Who would you like to Whisper?","Whisper") in varPeople + list("Cancel")

if(varTo == "Cancel")
return

var/varSay = input("What would you like to say to [varTo]?","Whisper") as text|null

if(src.muted)
src << "You have been muted!"
return

for(var/X in L)
if(findtext(varSay,X))
alert("You may not change your font size.")
return

if(!varSay)
spawn() alert("Your message may not be blank.")
return

if(lentext(varSay) > 750)
spawn() alert("Your message can not exceed 750 characters.")
varSay = copytext(varSay,1,750)

if(!varTo)return
if(usr in varTo:Ignored)
usr << "<font color=red>[varTo] is ignoring you, you may not whisper them."
return

src << "<font color = purple>To [varTo:name]: [varSay]"

if(src.GMLevel > 0)
varTo << "<font color = #F819F5>(GM) <font color = blue><a href=?src=\ref[src];action=Whisper>[src.name]</a></font> Whispers: [varSay]"
else
varTo << "<font color = #F819F5><font color = blue><a href=?src=\ref[src];action=Whisper>[src.name]</a></font> Whispers: [varSay]"




src.afk_time = 0

mob/Topic(href,href_list[])
switch(href_list["action"])
if("Whisper")
var/message = input("What would you like to reply?","Whisper") as null|text
if(!message)
spawn() alert("Your message may not be blank.")
return

if(usr.GMLevel >= 1)
src << "<font color = #F819F5>(GM) <font color = blue><a href=?src=\ref[usr];action=Whisper>[usr.name]</a></font> Whispers: [message]"
usr << "<font color = purple>To [src.name]: [message]"
else
src << "<font color = #F819F5><font color = blue><a href=?src=\ref[usr];action=Whisper>[usr.name]</a></font> Whispers: [message]"
usr << "<font color = purple>To [src.name]: [message]"

. = ..()


In response to Shayvguy1222
plzzzzzzz someone help me to fix it i need to make it pop up
after whisper so plzzzz that it the only thing i need to complete my game !!!
In response to Shayvguy1222
someone plzzz help me the one that will help me i will make him my co owner in my game so plzzzzzzzzz help me !!!!!
In response to Shayvguy1222
Haha that's hardly an enticement. Yay I can manage a GAME! :D That won't get you far in life other than what little experience you'll get with "management" (if you can even call it that >_>).
In response to Spunky_Girl
ouch
In response to Biond_coder
look i need help and i dont know how to make it pop up and i dont know if i made it right but i just need help so if you want help me if not so dont help