Edited wiki page LuaAPI through web user interface.
authorhenrik.rostedt
Sat, 13 Nov 2010 22:00:12 +0000
changeset 28 026591d95ac6
parent 27 6fc5b427224f
child 29 19a3182cac9d
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Fri Nov 12 16:34:39 2010 +0000
+++ b/LuaAPI.wiki	Sat Nov 13 22:00:12 2010 +0000
@@ -131,6 +131,10 @@
 
 <blockquote>returns the clan id of the specified hedgehog gear
 </blockquote>
+=== <tt>!GetHogTeamName(gearUid)</tt> ===
+
+<blockquote>returns the name of the specified hedgehog gear's team
+</blockquote>
 === <tt>!GetHogName(gearUid)</tt> ===
 
 <blockquote>returns the name of the specified hedgehog gear
@@ -214,10 +218,14 @@
 </blockquote>
 === <tt>!SetState(gearUid, state)</tt> ===
 
-<blockquote>Sets the state of the specified gear to one of [States]
+<blockquote>Sets the state of the specified gear to one of [States].
 </blockquote>
+
 === <tt>!SetTag(gearUid, tag)</tt> ===
 
+<blockquote>Sets the tag of the specified gear, different for every gear.
+</blockquote>
+
 === <tt>!SetTimer(gearUid, timer)</tt> (0.9.14) ===
 
 <blockquote>Sets the timer of the specified gear. Also see !GetTimer.
@@ -237,18 +245,38 @@
 
 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
 
+<blockquote>Use to tell the player what he is supposed to do.
+</blockquote>
+
 === <tt>!HideMission()</tt> ===
 
+<blockquote>Hides the mission.
+</blockquote>
+
+=== <tt>!AddCaption(text)</tt> (0.9.14) ===
+
+<blockquote>Display event text in the upper part of the screen.
+</blockquote>
+
 === <tt>!PlaySound(soundId)</tt> ===
 
+<blockquote>Plays the specified sound.
+</blockquote>
+
 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) ===
 
 <blockquote>Sets the zoom level. The value for maximum zoom is currently 1.0 and for minimum 3.0 The default zoom level is 2.0
 </blockquote>
+
 === <tt>!GetZoom()</tt> (0.9.14) ===
 
 <blockquote>Returns the current zoom level
 </blockquote>
+
+=== <tt>!GetRandom(number)</tt> (0.9.14) ===
+
+<blockquote>Returns a randomly generated number in the range of 0 to number - 1. 
+</blockquote>
 == Debugging Functions ==
 
 === <tt>!WriteLnToConsole(string)</tt> (0.9.14) ===