ID:172301
 
I set a verb called "change topic". And when a person sets the topic, I want it to appear whenever somebody else logs in so he won't have to ask.

I want it to be like this:

Current topic: BYOND.


Paynekiller logs in.

Hello, Paynekiller. The Current topic is: BYOND.

How do I do that?

P.S. : Pure Noobism means i've only had BYOND for a matter of days.
How do you have different rooms set up? Make variables assossiated with each room to keep track of the information. For example, if you have objects being used as rooms with players being in them or having a variable referencing them, you can use the objects' "desc" variable (That variable is built-in, so you don't have to define it.) Or if you have a list of text strings (The text being the names of the rooms) you can have either a parallel list keeping track of topics or make the list you have an assossiative list with each room name being set to a topic.

Examples:
Object Rooms
var/global/list/rooms=list()
mob/var/obj/room
mob/verb
create_room(room_name as text)
var/obj/O=new
O.name=room_name
global.rooms+=O
change_topic(topic as text)
if(room)room.desc=topic
join(obj/room in global.rooms)
src.room=room
src<<"Topic: [room.desc]"

Assossiative List Rooms
var/global/list/rooms=list("Lobby"="No Topic")
mob/var/room
mob/verb
create_room(room_name as text)
global.rooms+=room_name
change_topic(topic as text)
global.rooms[room]=topic
join(room in global.rooms)
src.room=room
src<<"Topic: [global.rooms[room]]"
In response to Loduwijk
Thanks for the tip. Now if only they'd bring back zip uploads. I have the zip archive ready but I don't have a website to put it on.


Anyway around this?
In response to Paynekiller
If you want to continue using BYOND... no.