HowToAddItemsStendhal: Difference between revisions

Content deleted Content added
imported>Kymara
No edit summary
imported>Teiv
Line 119:
Creatures can drop items, see [[HowToAddCreaturesStendhal]]. Perhaps you will want your NPC to equip the player with an item as part of a quest, see [[HowToCreateQuests]] or an NPC to sell the item. For the latter you will need to understand NPC seller behaviour which should be covered separately. Until that is done, look at Seller examples such as Margaret in Semos Tavern in your source code.
 
You may wish to add items to a map (for player to pick up or harvest). You can either add to zone by creating a java file (good for one - off items like the poison and scroll of Haizen's table in his hut) or add using tiled which is more work initially but allows you to add to the objects layer in tiled again and again in future. (Good for iron ore to collect from the ground, herbs etc). This needs a whole tutorial on spawners (also knows as growers), see [[HowToAddGrowers]] - so watch this space!