StendhalScripting/LuaAPI: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge →properties: add methods |
imported>AntumDeluge add scripting category |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 == |
||
| Line 764: | Line 774: | ||
* [[StendhalScripting/Lua#Lua_Basics|Lua: Basics]] |
* [[StendhalScripting/Lua#Lua_Basics|Lua: Basics]] |
||
* [[StendhalScripting/Lua#Stendhal_Application|Lua: Stendhal Application]] |
* [[StendhalScripting/Lua#Stendhal_Application|Lua: Stendhal Application]] |
||
[[Category:Stendhal]] |
|||
[[Category:Documentation]] |
|||
[[Category:API]] |
|||
[[Category:Scripting]] |
|||
[[Category:Lua]] |
|||