Speech Bubbles.

This commit is contained in:
StrumpetPlaya
2011-11-20 01:23:55 -05:00
parent 83430e6726
commit 1c580d1359
2 changed files with 17 additions and 2 deletions
+9 -2
View File
@@ -300,10 +300,12 @@
else
heard_b += M
var/speech_bubble_test = say_test(message)
var/image/speech_bubble = image('talk.dmi',src,"h[speech_bubble_test]")
var/rendered = null
if (length(heard_a))
var/message_a = say_quote(message)
if (italics)
message_a = "<i>[message_a]</i>"
if (!istype(src, /mob/living/carbon/human))
@@ -337,6 +339,9 @@
for (var/mob/M in heard_a)
M.show_message(rendered, 2)
M << speech_bubble
spawn(30) del(speech_bubble)
//spawn(30) del(speech_bubble)
/*
if(M.client)
@@ -407,6 +412,8 @@
for (var/mob/M in heard_b)
M.show_message(rendered, 2)
M << speech_bubble
spawn(30) del(speech_bubble)
/*
if(M.client)
@@ -415,7 +422,7 @@
var/image/I = image('speechbubble.dmi', B, "override")
I.override = 1
M << I
*/ /*
flick("[presay]say", B)
+8
View File
@@ -70,3 +70,11 @@
/mob/proc/emote(var/act)
return
/mob/proc/say_test(var/text)
var/ending = copytext(text, length(text))
if (ending == "?")
return "1"
else if (ending == "!")
return "2"
return "0"