equal
deleted
inserted
replaced
247 </blockquote> |
247 </blockquote> |
248 Example: |
248 Example: |
249 |
249 |
250 <code lang="lua"> gear = !AddGear(…) |
250 <code lang="lua"> gear = !AddGear(…) |
251 !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code> |
251 !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code> |
|
252 === <tt>!HogSay(gearUid, text, manner)</tt> === |
|
253 |
|
254 <blockquote>Makes the specified gear say, think, or shout some text in a bubble. |
|
255 </blockquote> |
|
256 Example: |
|
257 |
|
258 <code lang="lua"> !HogSay(CurrentHedgehog, "I wonder what to do...", SAY_THINK) -- thought bubble with text |
|
259 !HogSay(CurrentHedgehog, "I'm hungry...", SAY_SAY) -- speech bubble with text |
|
260 !HogSay(CurrentHedgehog, "I smell CAKE!", SAY_SHOUT) -- exclamatory bubble with text |
|
261 </code> |
252 === <tt>!HogTurnLeft(gearUid, boolean)</tt> === |
262 === <tt>!HogTurnLeft(gearUid, boolean)</tt> === |
253 |
263 |
254 <blockquote>Faces the specified hog left or right. |
264 <blockquote>Faces the specified hog left or right. |
255 </blockquote> |
265 </blockquote> |
256 Example: |
266 Example: |