StendhalScripting/LuaAPI: Difference between revisions

Content deleted Content added
imported>AntumDeluge
entities: return type of entities:getNPC changed to LuaSpeakerNPC
imported>AntumDeluge
SkinColor: example usage
Line 605:
 
The {{StendhalFile|master|src/games/stendhal/common/constants/SkinColor.java|games.stendhal.common.constants.SkinColor}} enum.
 
Example usage:
<pre>
local npc = entities:createSpeakerNPC("foo")
npc:setOutfit("body=0,head=0,hair=3,dress=5")
npc:setOutfitColor("skin", SkinColor.DARK)
</pre>
 
== Direction ==