Fun->Show Tip verb added

🆑 coiax
rscadd: Our administrators, here at /tg/, don't get enough credit for
their wealth of experience and knowledge. Now they get the chance to
share that with you by giving out custom tips!
/🆑

- Show Tip verb, asks for input, then outputs it to all players in
exactly the format that tips are displayed in. Also supresses the
automatic tip if given before it's sent out.
This commit is contained in:
Jack Edge
2016-06-21 20:01:50 +01:00
parent 234665eb89
commit 233fee6667
2 changed files with 26 additions and 1 deletions
+2 -1
View File
@@ -97,7 +97,8 @@ var/list/admin_verbs_fun = list(
/client/proc/toggle_nuke,
/client/proc/mass_zombie_infection,
/client/proc/mass_zombie_cure,
/client/proc/polymorph_all
/client/proc/polymorph_all,
/client/proc/show_tip
)
var/list/admin_verbs_spawn = list(
/datum/admins/proc/spawn_atom, /*allows us to spawn instances*/
+24
View File
@@ -1062,3 +1062,27 @@ var/list/datum/outfit/custom_outfits = list() //Admin created outfits
wabbajack(M)
message_admins("Mass polymorph started by [who_did_it] is complete.")
/client/proc/show_tip()
set category = "Fun"
set name = "Show Tip"
set desc = "Sends a tip (that you specify) to all players. After all \
you're the experienced player here."
if(!holder)
return
var/input = input(usr, "Please specify your tip that you want to send to the players.", "Tip", "") as message|null
if(!input)
return
if(ticker)
ticker.tipped = TRUE
world << "<font color='purple'><b>Tip of the round: </b>\
[html_encode(input)]</font>"
message_admins("[key_name_admin(usr)] sent \"[input]\" as the \
Tip of the Round.")
log_admin("[key_name(usr)] sent \"[input]\" as the Tip of the Round.")
feedback_add_details("admin_verb","TIP")