custom range and changelog

This commit is contained in:
Jordie0608
2015-07-06 23:46:21 +10:00
parent 973683b8bf
commit 52acb19a55
2 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -91,10 +91,13 @@
return
if(!A)
return
var/range = input("Range:", "Narrate to mobs within how many tiles:", 7) as num
if(!range)
return
var/msg = input("Message:", text("Enter the text you wish to appear to everyone within view:")) as text
if (!msg)
return
for(var/mob/living/M in view(7,A))
for(var/mob/living/M in view(range,A))
M << msg
log_admin("LocalNarrate: [key_name(usr)] at ([get_area(A)]): [msg]")