Say(msg as text)
if(src.key == "Kongoro"||"Lugia319")
view() << "<font color=purple><b>(Admin)[src.key] says: <font color=silver>[msg]"
else
view() << "<b>[src.key] says:</b>[msg]"
Shout(msg as text)
if(src.key == "Kongoro"||"Lugia319")
world << "<font color=purple><b>(Admin)[src.key] shouts: <font color=silver>[msg]"
else
world << "<b>[src.key] shouts: [msg]"
Problem description:
See, all I'm trying to do is make Admins have purple names, silver text, and an Admin label, for both shouting and saying. But, no matter who logs in, they chat with purple names, silver text, and admin labels. Can anybody please help me make it so anybody without those two keys types with simple black font?
The reason that is happening is because that isn't how || works. It see if src.key == "Kongoro" returns true, then if "Lugia319" returns true. Which "Lugia319" will always return true, it doesn't check both of them to the key. To check both you would to do
Though that's not very practical. It would probably work better with