diff --git a/code/game/verbs/character_directory.dm b/code/game/verbs/character_directory.dm new file mode 100644 index 0000000000..bf1af2dc2c --- /dev/null +++ b/code/game/verbs/character_directory.dm @@ -0,0 +1,32 @@ +/client/verb/show_character_directory() + set name = "Character Directory" + set category = "OOC" + set desc = "Shows a listing of all active characters, along with their associated OOC notes, flavor text, and more." + + if(mob.next_move >= world.time) //This is primarily to stop malicious users from trying to lag the server by spamming this verb + return + + mob.next_move = world.time + 10 + + var/html = "" + + var/curID = 0 + for(var/client/C in clients) + if(ishuman(C.mob)) + curID++ + var/mob/living/carbon/human/H = C.mob + html += "
" + html += "

[H.real_name]


" + if(H.flavor_texts["general"]) + html += "Flavor text" + html += "" + if(H.ooc_notes) + html += "OOC notes" + html += "" + html += "
" + if(!curID) + html += "

404: Station not found

" + + var/datum/browser/popup = new(mob, "chardir", "Character Directory", 640, 480) + popup.set_content(html) + popup.open() diff --git a/vorestation.dme b/vorestation.dme index 3e19dfa5b1..5b7d68e97c 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1294,6 +1294,7 @@ #include "code\game\turfs\unsimulated\sky_vr.dm" #include "code\game\turfs\unsimulated\walls.dm" #include "code\game\verbs\advanced_who.dm" +#include "code\game\verbs\character_directory.dm" #include "code\game\verbs\ignore.dm" #include "code\game\verbs\ooc.dm" #include "code\game\verbs\suicide.dm"