HowToAddMapsServerStendhal: Difference between revisions
Content deleted Content added
imported>Kymara →Adding NPCs: corrections and help |
imported>Kymara →Adding NPCs: corrections and help |
||
Line 196:
</pre>
Your NPC will stand still at whatever point you set as the initial position with <
And then create a dialog. Dialogs and such are explained in Quest sections, but you should find the exmaple above covers most options and the options like addHelp are quite self-explanatory.
Now simply assign an id to the NPC (with the line <
* setting its class to a PNG image that exists at ''data/sprites/npc''
* setting its outfit with setOutfit method.
| |||