LuaAPI.wiki
changeset 59 233360620ae2
parent 58 fcffa4712a96
child 60 e9375c8b25c7
--- a/LuaAPI.wiki	Mon Dec 06 16:06:28 2010 +0000
+++ b/LuaAPI.wiki	Mon Dec 06 19:54:24 2010 +0000
@@ -249,6 +249,16 @@
 
 <code lang="lua">    gear = !AddGear(…)
     !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code>
+=== <tt>!HogSay(gearUid, text, manner)</tt> ===
+
+<blockquote>Makes the specified gear say, think, or shout some text in a bubble.
+</blockquote>
+Example:
+
+<code lang="lua">    !HogSay(CurrentHedgehog, "I wonder what to do...", SAY_THINK) -- thought bubble with text
+    !HogSay(CurrentHedgehog, "I'm hungry...", SAY_SAY) -- speech bubble with text
+    !HogSay(CurrentHedgehog, "I smell CAKE!", SAY_SHOUT) -- exclamatory bubble with text
+</code>
 === <tt>!HogTurnLeft(gearUid, boolean)</tt> ===
 
 <blockquote>Faces the specified hog left or right.