diff --git a/code/controllers/subsystems/garbage.dm b/code/controllers/subsystems/garbage.dm
index 5573b23ae83..362a4055bce 100644
--- a/code/controllers/subsystems/garbage.dm
+++ b/code/controllers/subsystems/garbage.dm
@@ -362,7 +362,7 @@ SUBSYSTEM_DEF(garbage)
return
if(!skip_alert)
- if(alert("Running this will lock everything up for about 5 minutes. Would you like to begin the search?", "Find References", "Yes", "No") == "No")
+ if(alert(usr, "Running this will lock everything up for about 5 minutes. Would you like to begin the search?", "Find References", "Yes", "No") == "No")
running_find_references = null
return
diff --git a/code/controllers/subsystems/supply.dm b/code/controllers/subsystems/supply.dm
index 47a0e0e7bd4..f47131a05a4 100644
--- a/code/controllers/subsystems/supply.dm
+++ b/code/controllers/subsystems/supply.dm
@@ -310,7 +310,7 @@ SUBSYSTEM_DEF(supply)
/datum/controller/subsystem/supply/proc/delete_order(var/datum/supply_order/O, var/mob/user)
// Making sure they know what they're doing
if(alert(user, "Are you sure you want to delete this record? If it has been approved, cargo points will NOT be refunded!", "Delete Record","No","Yes") == "Yes")
- if(alert(user, "Are you really sure? There is no way to recover the order once deleted.", "Delete Record", "No", "Yes") == "Yes")
+ if(alert(user, "Are you really sure? There is no way to recover the order once deleted.", "Delete Record", "No","Yes") == "Yes")
log_admin("[key_name(user)] has deleted supply order \ref[O] [O] from the user-side order history.")
order_history -= O
return
@@ -354,7 +354,7 @@ SUBSYSTEM_DEF(supply)
/datum/controller/subsystem/supply/proc/delete_export(var/datum/exported_crate/E, var/mob/user)
// Making sure they know what they're doing
if(alert(user, "Are you sure you want to delete this record?", "Delete Record","No","Yes") == "Yes")
- if(alert(user, "Are you really sure? There is no way to recover the receipt once deleted.", "Delete Record", "No", "Yes") == "Yes")
+ if(alert(user, "Are you really sure? There is no way to recover the receipt once deleted.", "Delete Record", "No","Yes") == "Yes")
log_admin("[key_name(user)] has deleted export receipt \ref[E] [E] from the user-side export history.")
exported_crates -= E
return
diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm
index 7b09c83308c..da98fd4cefe 100644
--- a/code/datums/datumvars.dm
+++ b/code/datums/datumvars.dm
@@ -42,7 +42,7 @@
var/client/C = value["value"]
if (!C)
return
- var/prompt = alert("Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", "Yes", "No")
+ var/prompt = alert(usr, "Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", "Yes", "No")
if (prompt != "Yes" || !usr.client)
return
message_admins("[key_name_admin(usr)] Showed [key_name_admin(C)] a VV window")
diff --git a/code/datums/locations/locations.dm b/code/datums/locations/locations.dm
index 0081318eb05..688217fea0b 100644
--- a/code/datums/locations/locations.dm
+++ b/code/datums/locations/locations.dm
@@ -33,7 +33,7 @@ var/global/datum/locations/milky_way/all_locations = new()
var/specific = alert(user, "The location currently selected is [choice.name]. More specific options exist, would you like to pick a more specific location?",
"Choose location", "Yes", "No")
if(specific == "Yes" && length(choice.contents) > 0)
- choice = input(user, "Please choose a location.","Locations") as null|anything in choice.contents
+ choice = input(user, "Please choose a location.", "Locations") as null|anything in choice.contents
else
break
to_chat(user,choice.name)
diff --git a/code/datums/mind.dm b/code/datums/mind.dm
index de91fd48abc..9ecada8a9ea 100644
--- a/code/datums/mind.dm
+++ b/code/datums/mind.dm
@@ -122,7 +122,7 @@
/datum/mind/proc/edit_memory()
if(!ticker || !ticker.mode)
- alert("Not before round-start!", "Alert")
+ alert(usr, "Not before round-start!", "Alert")
return
var/out = "[name][(current&&(current.real_name!=name))?" (as [current.real_name])":""]
"
diff --git a/code/defines/obj.dm b/code/defines/obj.dm
index 72b808165a4..8103e91a143 100644
--- a/code/defines/obj.dm
+++ b/code/defines/obj.dm
@@ -8,12 +8,9 @@
return attack_hand(user)
/obj/structure/signpost/attack_hand(mob/user as mob)
- switch(alert("Travel back to ss13?",,"Yes","No"))
- if("Yes")
- if(user.z != src.z) return
- user.forceMove(pick(latejoin))
- if("No")
- return
+ if(alert(user, "Travel back to ss13?","Return?","Yes","No") == "Yes")
+ if(user.z != src.z) return
+ user.forceMove(pick(latejoin))
/obj/effect/mark
var/mark = ""
diff --git a/code/game/antagonist/antagonist_factions.dm b/code/game/antagonist/antagonist_factions.dm
index 15191897ce8..18bfddcdfde 100644
--- a/code/game/antagonist/antagonist_factions.dm
+++ b/code/game/antagonist/antagonist_factions.dm
@@ -34,7 +34,7 @@
message_admins("[src]([src.ckey]) attempted to convert [player.current].")
player.rev_cooldown = world.time+100
- var/choice = alert(player.current,"Asked by [src]: Do you want to join the [faction.faction_descriptor]?","Join the [faction.faction_descriptor]?","No!","Yes!")
+ var/choice = alert(player.current, "Asked by [src]: Do you want to join the [faction.faction_descriptor]?", "Join the [faction.faction_descriptor]?", "No!","Yes!")
if(choice == "Yes!" && faction.add_antagonist_mind(player, 0, faction.faction_role_text, faction.faction_welcome))
to_chat(src, "\The [player.current] joins the [faction.faction_descriptor]!")
return
diff --git a/code/game/antagonist/station/highlander.dm b/code/game/antagonist/station/highlander.dm
index 708f047a57c..c1c7592d7b3 100644
--- a/code/game/antagonist/station/highlander.dm
+++ b/code/game/antagonist/station/highlander.dm
@@ -56,7 +56,7 @@ var/datum/antagonist/highlander/highlanders
/proc/only_one()
if(!ticker)
- alert("The game hasn't started yet!")
+ alert(usr,"The game hasn't started yet!")
return
for(var/mob/living/carbon/human/H in player_list)
diff --git a/code/game/gamemodes/changeling/powers/fake_death.dm b/code/game/gamemodes/changeling/powers/fake_death.dm
index 65fce3cecf6..de50443a8dd 100644
--- a/code/game/gamemodes/changeling/powers/fake_death.dm
+++ b/code/game/gamemodes/changeling/powers/fake_death.dm
@@ -22,7 +22,7 @@
to_chat(src, "We have no genomes, not even our own, and cannot regenerate.")
return 0
- if(!C.stat && alert("Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival","Yes","No") == "No")
+ if(!C.stat && alert(src, "Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival","Yes","No") == "No")
return
to_chat(C, "We will attempt to regenerate our form.")
diff --git a/code/game/gamemodes/cult/ritual.dm b/code/game/gamemodes/cult/ritual.dm
index 4b095d2cd16..2b388e683e1 100644
--- a/code/game/gamemodes/cult/ritual.dm
+++ b/code/game/gamemodes/cult/ritual.dm
@@ -330,10 +330,10 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
return
if (C>=26 + runedec + cult.current_antagonists.len) //including the useless rune at the secret room, shouldn't count against the limit of 25 runes - Urist
- alert("The cloth of reality can't take that much of a strain. Remove some runes first!")
+ alert(user, "The cloth of reality can't take that much of a strain. Remove some runes first!")
return
else
- switch(alert("You open the tome",,"Read it","Scribe a rune", "Cancel"))
+ switch(alert(user, "You open the tome", "Tome", "Read it","Scribe a rune","Cancel"))
if("Cancel")
return
if("Read it")
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
index c9b76400d94..0390fb55f77 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
@@ -23,7 +23,7 @@
user.bombing_core = 0
return
- var/choice = alert("Really destroy core?", "Core self-destruct", "YES", "NO")
+ var/choice = alert(user, "Really destroy core?", "Core self-destruct", "YES", "NO")
if(choice != "YES")
return
@@ -82,7 +82,7 @@
user.bombing_station = 0
return
- var/choice = alert("Really destroy station?", "Station self-destruct", "YES", "NO")
+ var/choice = alert(user, "Really destroy station?", "Station self-destruct", "YES", "NO")
if(choice != "YES")
return
if(!ability_prechecks(user, 0, 0))
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
index 8c27df27322..ec32f445d76 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
@@ -47,7 +47,7 @@
error("Hardware without description: [C]")
return
- var/confirmation = alert("[note] - Is this what you want?", "Hardware selection", "Yes", "No")
+ var/confirmation = alert(user, "[note] - Is this what you want?", "Hardware selection", "Yes", "No")
if(confirmation != "Yes")
to_chat(user, "Selection cancelled. Use command again to select")
return
diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm
index 62406c38774..80e9053e427 100644
--- a/code/game/gamemodes/nuclear/pinpointer.dm
+++ b/code/game/gamemodes/nuclear/pinpointer.dm
@@ -120,7 +120,7 @@
target=null
location = null
- switch(alert("Please select the mode you want to put the pinpointer in.", "Pinpointer Mode Select", "Location", "Disk Recovery", "Other Signature"))
+ switch(alert(usr, "Please select the mode you want to put the pinpointer in.", "Pinpointer Mode Select", "Location", "Disk Recovery", "Other Signature"))
if("Location")
mode = 1
@@ -145,7 +145,7 @@
if("Other Signature")
mode = 2
- switch(alert("Search for item signature or DNA fragment?" , "Signature Mode Select" , "" , "Item" , "DNA"))
+ switch(alert(usr, "Search for item signature or DNA fragment?" , "Signature Mode Select" , "" , "Item" , "DNA"))
if("Item")
var/datum/objective/steal/itemlist
diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm
index 29925b20597..12789b4ecb7 100644
--- a/code/game/machinery/computer/guestpass.dm
+++ b/code/game/machinery/computer/guestpass.dm
@@ -45,7 +45,7 @@
to_chat(user, "This guest pass is already deactivated!")
return
- var/confirm = alert("Do you really want to deactivate this guest pass? (you can't reactivate it)", "Confirm Deactivation", "Yes", "No")
+ var/confirm = alert(usr, "Do you really want to deactivate this guest pass? (you can't reactivate it)", "Confirm Deactivation", "Yes", "No")
if(confirm == "Yes")
//rip guest pass 3
user.visible_message("\The [user] deactivates \the [src].")
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index 3cd05e69b57..b0f77a97a9b 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -664,7 +664,7 @@
var/willing = null //We don't want to allow people to be forced into despawning.
if(M.client)
- if(alert(M,"Would you like to enter long-term storage?",,"Yes","No") == "Yes")
+ if(alert(M,"Would you like to enter long-term storage?","Cryopod","Yes","No") == "Yes")
if(!M) return
willing = 1
else
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index 4c283cd3014..390009f25b5 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -54,7 +54,7 @@ var/const/HOLOPAD_MODE = RANGE_BASED
/obj/machinery/hologram/holopad/attack_hand(var/mob/living/carbon/human/user) //Carn: Hologram requests.
if(!istype(user))
return
- if(alert(user,"Would you like to request an AI's presence?",,"Yes","No") == "Yes")
+ if(alert(user,"Would you like to request an AI's presence?","Request AI","Yes","No") == "Yes")
if(last_request + 200 < world.time) //don't spam the AI with requests you jerk!
last_request = world.time
to_chat(user, "You request an AI's presence.")
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 8cc0c56e5fe..f652f045396 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -413,7 +413,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
set_temp("Error: Could not submit feed channel to network: A feed channel already exists under your name.", "danger", FALSE)
return TRUE
- var/choice = alert("Please confirm Feed channel creation","Network Channel Handler","Confirm","Cancel")
+ var/choice = alert(usr, "Please confirm Feed channel creation","Network Channel Handler","Confirm","Cancel")
if(choice == "Confirm")
news_network.CreateFeedChannel(channel_name, our_user, c_locked)
set_temp("Feed channel [channel_name] created successfully.", "success", FALSE)
@@ -490,11 +490,11 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
set_temp("Error: Could not submit wanted issue to network: Author unverified.", "danger", FALSE)
return TRUE
- var/choice = alert("Please confirm Wanted Issue change.", "Network Security Handler", "Confirm", "Cancel")
+ var/choice = alert(usr, "Please confirm Wanted Issue change.", "Network Security Handler", "Confirm", "Cancel")
if(choice == "Confirm")
if(news_network.wanted_issue)
if(news_network.wanted_issue.is_admin_message)
- alert("The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot edit it.", "Ok")
+ alert(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot edit it.", "Ok")
return
news_network.wanted_issue.author = channel_name
news_network.wanted_issue.body = msg
@@ -519,9 +519,9 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
if(!securityCaster)
return FALSE
if(news_network.wanted_issue.is_admin_message)
- alert("The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot take it down.","Ok")
+ alert(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot take it down.","Ok")
return
- var/choice = alert("Please confirm Wanted Issue removal","Network Security Handler","Confirm","Cancel")
+ var/choice = alert(usr, "Please confirm Wanted Issue removal","Network Security Handler","Confirm","Cancel")
if(choice=="Confirm")
news_network.wanted_issue = null
for(var/obj/machinery/newscaster/NEWSCASTER in allCasters)
@@ -534,7 +534,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_channel/FC = locate(params["ref"])
if(FC.is_admin_channel)
- alert("This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
+ alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
return
if(FC.author != "\[REDACTED\]")
FC.backup_author = FC.author
@@ -549,7 +549,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_message/MSG = locate(params["ref"])
if(MSG.is_admin_message)
- alert("This message was created by a [using_map.company_name] Officer. You cannot censor its author.","Ok")
+ alert(usr, "This message was created by a [using_map.company_name] Officer. You cannot censor its author.","Ok")
return
if(MSG.author != "\[REDACTED\]")
MSG.backup_author = MSG.author
@@ -564,7 +564,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_message/MSG = locate(params["ref"])
if(MSG.is_admin_message)
- alert("This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
+ alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
return
if(MSG.body != "\[REDACTED\]")
MSG.backup_body = MSG.body
@@ -586,7 +586,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_channel/FC = locate(params["ref"])
if(FC.is_admin_channel)
- alert("This channel was created by a [using_map.company_name] Officer. You cannot place a D-Notice upon it.","Ok")
+ alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot place a D-Notice upon it.","Ok")
return
FC.censored = !FC.censored
FC.update()
diff --git a/code/game/magic/archived_book.dm b/code/game/magic/archived_book.dm
index cc29ed2a8b8..6940768da49 100644
--- a/code/game/magic/archived_book.dm
+++ b/code/game/magic/archived_book.dm
@@ -48,7 +48,7 @@ var/global/datum/book_manager/book_mgr = new()
var/DBConnection/dbcon = new()
dbcon.Connect("dbi:mysql:[sqldb]:[sqladdress]:[sqlport]","[sqllogin]","[sqlpass]")
if(!dbcon.IsConnected())
- alert("Connection to Archive has been severed. Aborting.")
+ alert(usr, "Connection to Archive has been severed. Aborting.")
else
var/DBQuery/query = dbcon.NewQuery("DELETE FROM library WHERE id=[isbn]")
if(!query.Execute())
diff --git a/code/game/mecha/combat/phazon.dm b/code/game/mecha/combat/phazon.dm
index a1ea2ab4519..50f4e8727f0 100644
--- a/code/game/mecha/combat/phazon.dm
+++ b/code/game/mecha/combat/phazon.dm
@@ -143,7 +143,7 @@
..()
/obj/mecha/combat/phazon/janus/query_damtype()
- var/new_damtype = alert(src.occupant,"Gauntlet Phase Emitter Mode",null,"Force","Energy","Stun")
+ var/new_damtype = alert(src.occupant,"Gauntlet Phase Emitter Mode","Damage Type","Force","Energy","Stun")
switch(new_damtype)
if("Force")
damtype = "brute"
diff --git a/code/game/mecha/mecha_actions.dm b/code/game/mecha/mecha_actions.dm
index c70c3b9b837..1e1c7907043 100644
--- a/code/game/mecha/mecha_actions.dm
+++ b/code/game/mecha/mecha_actions.dm
@@ -399,7 +399,7 @@
/obj/mecha/proc/query_damtype()
if(usr!=src.occupant)
return
- var/new_damtype = alert(src.occupant,"Melee Damage Type",null,"Brute","Fire","Toxic")
+ var/new_damtype = alert(src.occupant,"Melee Damage Type","Damage Type","Brute","Fire","Toxic")
switch(new_damtype)
if("Brute")
damtype = "brute"
diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm
index 5286670849d..8370872263f 100644
--- a/code/game/objects/effects/decals/contraband.dm
+++ b/code/game/objects/effects/decals/contraband.dm
@@ -195,7 +195,7 @@
if(ruined)
return
- if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
+ if(alert(usr, "Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
if(ruined || !user.Adjacent(src))
return
diff --git a/code/game/objects/effects/decals/posters/posters.dm b/code/game/objects/effects/decals/posters/posters.dm
index 8046cf439ab..b323ef89467 100644
--- a/code/game/objects/effects/decals/posters/posters.dm
+++ b/code/game/objects/effects/decals/posters/posters.dm
@@ -178,7 +178,7 @@
if(ruined)
return
- if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
+ if(alert(usr, "Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
if(ruined || !user.Adjacent(src))
return
diff --git a/code/game/objects/items/devices/denecrotizer_vr.dm b/code/game/objects/items/devices/denecrotizer_vr.dm
index 12bfffbacb0..35df978bd80 100644
--- a/code/game/objects/items/devices/denecrotizer_vr.dm
+++ b/code/game/objects/items/devices/denecrotizer_vr.dm
@@ -21,7 +21,7 @@
if(!ghostjoin)
return ..()
- var/reply = alert("Would you like to become [src]? It is bound to [revivedby].",,"Yes","No")
+ var/reply = alert(usr, "Would you like to become [src]? It is bound to [revivedby].","Bind To","Yes","No")
if(reply == "No")
return
diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm
index 18fc2935429..5bfbc66464c 100644
--- a/code/game/objects/items/devices/multitool.dm
+++ b/code/game/objects/items/devices/multitool.dm
@@ -32,7 +32,7 @@
tool_qualities = list(TOOL_MULTITOOL)
/obj/item/device/multitool/attack_self(mob/living/user)
- var/choice = alert("What do you want to do with \the [src]?","Multitool Menu", "Switch Mode", "Clear Buffers", "Cancel")
+ var/choice = alert(usr, "What do you want to do with \the [src]?","Multitool Menu", "Switch Mode", "Clear Buffers", "Cancel")
switch(choice)
if("Cancel")
to_chat(user,"You lower \the [src].")
diff --git a/code/game/objects/items/devices/translocator_vr.dm b/code/game/objects/items/devices/translocator_vr.dm
index 0fb898edbfa..df7f4a872fe 100644
--- a/code/game/objects/items/devices/translocator_vr.dm
+++ b/code/game/objects/items/devices/translocator_vr.dm
@@ -166,16 +166,16 @@
switch(choice)
if("Create Beacon")
if(beacons_left <= 0)
- alert("The translocator can't support any more beacons!","Error")
+ alert(usr, "The translocator can't support any more beacons!","Error")
return
var/new_name = html_encode(input(user,"New beacon's name (2-20 char):","[src]") as text|null)
if(length(new_name) > 20 || length(new_name) < 2)
- alert("Entered name length invalid (must be longer than 2, no more than than 20).","Error")
+ alert(usr, "Entered name length invalid (must be longer than 2, no more than than 20).","Error")
return
if(new_name in beacons)
- alert("No duplicate names, please. '[new_name]' exists already.","Error")
+ alert(usr, "No duplicate names, please. '[new_name]' exists already.","Error")
return
var/obj/item/device/perfect_tele_beacon/nb = new(get_turf(src))
diff --git a/code/game/objects/items/toys/toys.dm b/code/game/objects/items/toys/toys.dm
index 61218364ad5..d105f471741 100644
--- a/code/game/objects/items/toys/toys.dm
+++ b/code/game/objects/items/toys/toys.dm
@@ -320,7 +320,7 @@
to_chat(user, "You can't do that right now!")
return
- if(alert("Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/items/weapons/circuitboards/computer/supply.dm b/code/game/objects/items/weapons/circuitboards/computer/supply.dm
index a19ecd1d8e0..78f4bbce1cd 100644
--- a/code/game/objects/items/weapons/circuitboards/computer/supply.dm
+++ b/code/game/objects/items/weapons/circuitboards/computer/supply.dm
@@ -32,7 +32,7 @@
opposite_catastasis = "BROAD"
catastasis = "STANDARD"
- switch( alert("Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface","Switch to [opposite_catastasis]","Cancel") )
+ switch( alert(usr, "Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface","Switch to [opposite_catastasis]","Cancel") )
if("Switch to STANDARD","Switch to BROAD")
src.contraband_enabled = !src.contraband_enabled
diff --git a/code/game/objects/items/weapons/id cards/syndicate_ids.dm b/code/game/objects/items/weapons/id cards/syndicate_ids.dm
index 01f6591104e..532b174871a 100644
--- a/code/game/objects/items/weapons/id cards/syndicate_ids.dm
+++ b/code/game/objects/items/weapons/id cards/syndicate_ids.dm
@@ -38,7 +38,7 @@
if(!registered_user && register_user(user))
to_chat(user, "The microscanner marks you as its owner, preventing others from accessing its internals.")
if(registered_user == user)
- switch(alert("Would you like edit the ID, or show it?","Show or Edit?", "Edit","Show"))
+ switch(alert(usr, "Would you like edit the ID, or show it?","Show or Edit?", "Edit","Show"))
if("Edit")
agentcard_module.tgui_interact(user)
if("Show")
diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm
index c81f1d0ff5b..64666c44a46 100644
--- a/code/game/objects/items/weapons/implants/implant.dm
+++ b/code/game/objects/items/weapons/implants/implant.dm
@@ -287,7 +287,7 @@ Implant Specifics:
"}
t.hotspot_expose(3500,125)
/obj/item/weapon/implant/explosive/post_implant(mob/source as mob)
- elevel = alert("What sort of explosion would you prefer?", "Implant Intent", "Localized Limb", "Destroy Body", "Full Explosion")
+ elevel = alert(usr, "What sort of explosion would you prefer?", "Implant Intent", "Localized Limb", "Destroy Body", "Full Explosion")
phrase = input("Choose activation phrase:") as text
var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "")
phrase = replace_characters(phrase, replacechars)
diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm
index c4025f088a8..77b5b6d732d 100644
--- a/code/game/objects/items/weapons/melee/energy.dm
+++ b/code/game/objects/items/weapons/melee/energy.dm
@@ -191,7 +191,7 @@
to_chat(user, "You can't do that right now!")
return
- if(alert("Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm
index e4a518e8db2..2d5ad36ef7e 100644
--- a/code/game/objects/items/weapons/shields.dm
+++ b/code/game/objects/items/weapons/shields.dm
@@ -208,7 +208,7 @@
if(user.incapacitated() || !istype(user))
to_chat(user, "You can't do that right now!")
return
- if(alert("Are you sure you want to recolor your shield?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(alert(usr, "Are you sure you want to recolor your shield?", "Confirm Recolor", "Yes", "No") == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/structures/trash_pile_vr.dm b/code/game/objects/structures/trash_pile_vr.dm
index 8c85871f768..1d7438b4b6d 100644
--- a/code/game/objects/structures/trash_pile_vr.dm
+++ b/code/game/objects/structures/trash_pile_vr.dm
@@ -69,13 +69,13 @@
var/mob/living/L = user
//They're in it, and want to get out.
if(L.loc == src)
- var/choice = alert("Do you want to exit \the [src]?","Un-Hide?","Exit","Stay")
+ var/choice = alert(usr, "Do you want to exit \the [src]?","Un-Hide?","Exit","Stay")
if(choice == "Exit")
if(L == hider)
hider = null
L.forceMove(get_turf(src))
else if(!hider)
- var/choice = alert("Do you want to hide in \the [src]?","Un-Hide?","Hide","Stay")
+ var/choice = alert(usr, "Do you want to hide in \the [src]?","Un-Hide?","Hide","Stay")
if(choice == "Hide" && !hider) //Check again because PROMPT
L.forceMove(src)
hider = L
diff --git a/code/game/response_team.dm b/code/game/response_team.dm
index 108f7a747e1..70a0d945ee2 100644
--- a/code/game/response_team.dm
+++ b/code/game/response_team.dm
@@ -24,12 +24,12 @@ var/silent_ert = 0
if(send_emergency_team)
to_chat(usr, "[using_map.boss_name] has already dispatched an emergency response team!")
return
- if(alert("Do you want to dispatch an Emergency Response Team?",,"Yes","No") != "Yes")
+ if(alert(usr, "Do you want to dispatch an Emergency Response Team?","ERT","Yes","No") != "Yes")
return
- if(alert("Do you want this Response Team to be announced?",,"Yes","No") != "Yes")
+ if(alert(usr, "Do you want this Response Team to be announced?","ERT","Yes","No") != "Yes")
silent_ert = 1
if(get_security_level() != "red") // Allow admins to reconsider if the alert level isn't Red
- switch(alert("The station is not in red alert. Do you still want to dispatch a response team?",,"Yes","No"))
+ switch(alert(usr, "The station is not in red alert. Do you still want to dispatch a response team?","ERT","Yes","No"))
if("No")
return
if(send_emergency_team)
diff --git a/code/game/trader_visit.dm b/code/game/trader_visit.dm
index a788be683ee..77bb192e65d 100644
--- a/code/game/trader_visit.dm
+++ b/code/game/trader_visit.dm
@@ -20,10 +20,10 @@ var/can_call_traders = 1
if(send_beruang)
to_chat(usr, "The Beruang has already been sent this round!")
return
- if(alert("Do you want to dispatch the Beruang trade ship?",,"Yes","No") != "Yes")
+ if(alert(usr, "Do you want to dispatch the Beruang trade ship?","Trade Ship","Yes","No") != "Yes")
return
if(get_security_level() == "red") // Allow admins to reconsider if the alert level is Red
- switch(alert("The station is in red alert. Do you still want to send traders?",,"Yes","No"))
+ switch(alert(usr, "The station is in red alert. Do you still want to send traders?","Trade Ship","Yes","No"))
if("No")
return
if(send_beruang)
diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm
index a32ddc578dc..31f2cd0578f 100644
--- a/code/modules/admin/DB ban/functions.dm
+++ b/code/modules/admin/DB ban/functions.dm
@@ -202,7 +202,7 @@
message_admins("[key_name_admin(usr)] has edited a ban for [pckey]'s duration from [duration] to [value]",1)
update_query.Execute()
if("unban")
- if(alert("Unban [pckey]?", "Unban?", "Yes", "No") == "Yes")
+ if(alert(usr, "Unban [pckey]?", "Unban?", "Yes", "No") == "Yes")
DB_ban_unban_by_id(banid)
return
to_chat(usr, "Cancelled")
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 482044e4af8..ca8c20fad71 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -665,7 +665,7 @@ var/global/floorIsLava = 0
set desc="Restarts the world"
if (!usr.client.holder)
return
- var/confirm = alert("Restart the game world?", "Restart", "Yes", "Cancel")
+ var/confirm = alert(usr, "Restart the game world?", "Restart", "Yes", "Cancel")
if(confirm == "Cancel")
return
if(confirm == "Yes")
@@ -1010,7 +1010,7 @@ var/datum/announcement/minor/admin_min_announcer = new
SSticker.delay_end = !SSticker.delay_end
log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].", 1)
- return //alert("Round end delayed", null, null, null, null, null)
+ return
round_progressing = !round_progressing
if (!round_progressing)
to_world("The game start has been delayed.")
@@ -1049,7 +1049,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set desc="Reboots the server post haste"
set name="Immediate Reboot"
if(!usr.client.holder) return
- if( alert("Reboot server?",,"Yes","No") == "No")
+ if( alert(usr, "Reboot server?","Reboot!","Yes","No") == "No")
return
to_world("Rebooting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!")
log_admin("[key_name(usr)] initiated an immediate reboot.")
@@ -1071,9 +1071,9 @@ var/datum/announcement/minor/admin_min_announcer = new
message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]", 1)
log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
else
- alert("Admin jumping disabled")
+ alert(usr, "Admin jumping disabled")
else
- alert("[M.name] is not prisoned.")
+ alert(usr, "[M.name] is not prisoned.")
feedback_add_details("admin_verb","UP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
@@ -1226,7 +1226,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set name = "Show Game Mode"
if(!ticker || !ticker.mode)
- alert("Not before roundstart!", "Alert")
+ alert(usr, "Not before roundstart!", "Alert")
return
var/out = "Current mode: [ticker.mode.name] ([ticker.mode.config_tag])
"
@@ -1512,7 +1512,7 @@ var/datum/announcement/minor/admin_min_announcer = new
msg = "has paralyzed [key_name(H)]."
log_and_message_admins(msg)
else
- if(alert(src, "[key_name(H)] is paralyzed, would you like to unparalyze them?",,"Yes","No") == "Yes")
+ if(alert(src, "[key_name(H)] is paralyzed, would you like to unparalyze them?","Paralyze Mob","Yes","No") == "Yes")
H.SetParalysis(0)
msg = "has unparalyzed [key_name(H)]."
log_and_message_admins(msg)
@@ -1586,7 +1586,7 @@ var/datum/announcement/minor/admin_min_announcer = new
var/shouldStamp = 1
if(!P.sender) // admin initiated
- switch(alert("Would you like the fax stamped?",, "Yes", "No"))
+ switch(alert(usr, "Would you like the fax stamped?","Stamped?", "Yes", "No"))
if("No")
shouldStamp = 0
diff --git a/code/modules/admin/admin_secrets.dm b/code/modules/admin/admin_secrets.dm
index 22430f17a3e..30d5e7f9923 100644
--- a/code/modules/admin/admin_secrets.dm
+++ b/code/modules/admin/admin_secrets.dm
@@ -59,7 +59,7 @@ var/datum/admin_secrets/admin_secrets = new()
/datum/admin_secret_item/proc/can_execute(var/mob/user)
if(can_view(user))
- if(!warn_before_use || alert("Execute the command '[name]'?", name, "No","Yes") == "Yes")
+ if(!warn_before_use || alert(usr, "Execute the command '[name]'?", name, "No","Yes") == "Yes")
return 1
return 0
diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm
index b0f553a4871..7ff7156a4c0 100644
--- a/code/modules/admin/admin_verbs.dm
+++ b/code/modules/admin/admin_verbs.dm
@@ -374,7 +374,7 @@
set category = "Admin"
if(holder)
- if(alert("Confirm self-deadmin for the round? You can't re-admin yourself without someone promoting you.",,"Yes","No") == "Yes")
+ if(alert(usr, "Confirm self-deadmin for the round? You can't re-admin yourself without someone promoting you.","Deadmin","Yes","No") == "Yes")
log_admin("[src] deadmined themself.")
message_admins("[src] deadmined themself.", 1)
deadmin()
@@ -432,7 +432,7 @@
if(!check_rights(R_ADMIN|R_EVENT)) return
var sec_level = input(usr, "It's currently code [get_security_level()].", "Select Security Level") as null|anything in (list("green","yellow","violet","orange","blue","red","delta")-get_security_level())
- if(alert("Switch from code [get_security_level()] to code [sec_level]?","Change security level?","Yes","No") == "Yes")
+ if(alert(usr, "Switch from code [get_security_level()] to code [sec_level]?","Change security level?","Yes","No") == "Yes")
set_security_level(sec_level)
log_admin("[key_name(usr)] changed the security level to code [sec_level].")
@@ -504,7 +504,7 @@
set desc = "Tells mob to man up and deal with it."
set popup_menu = FALSE //VOREStation Edit - Declutter.
- if(alert("Are you sure you want to tell them to man up?","Confirmation","Deal with it","No")=="No") return
+ if(alert(usr, "Are you sure you want to tell them to man up?","Confirmation","Deal with it","No")=="No") return
to_chat(T, "Man up and deal with it.")
to_chat(T, "Move along.")
@@ -517,7 +517,7 @@
set name = "Man Up Global"
set desc = "Tells everyone to man up and deal with it."
- if(alert("Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return
+ if(alert(usr, "Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return
for (var/mob/T as mob in mob_list)
to_chat(T, "