# HG changeset patch # User RedGrinner # Date 1291665264 0 # Node ID 233360620ae26cf680b3838a8d54c5168e0434d7 # Parent fcffa4712a9680e8db61a6953a66244c2f01de8c Edited wiki page LuaAPI through web user interface. diff -r fcffa4712a96 -r 233360620ae2 LuaAPI.wiki --- 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 @@ gear = !AddGear(…) !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH +=== !HogSay(gearUid, text, manner) === + +
Makes the specified gear say, think, or shout some text in a bubble. +
+Example: + + !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 + === !HogTurnLeft(gearUid, boolean) ===
Faces the specified hog left or right.