StendhalScripting/LuaAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
properties: add methods
imported>AntumDeluge
properties: add usage example
Line 83: Line 83:
: '''''v:''''' (string) Value to compare with.
: '''''v:''''' (string) Value to compare with.
: '''''returns:''''' (boolean) `true` if the value of the property is the same as `v`.
: '''''returns:''''' (boolean) `true` if the value of the property is the same as `v`.

Examples usage:

<pre>
-- example of only executing script contents on test server

if not properties:enabed("stendhal.testserver") then
do return end
end
</pre>


== game ==
== game ==