HowToAddItemsStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara |
imported>Kymara No edit summary |
||
| Line 144: | Line 144: | ||
</source> |
</source> |
||
= Add Grammar = |
|||
Item names should be short and enough to identify the item, but in spoken and written English there may be some extra words associated with saying the item. For example, Carmen should offer to sell ''100 bottles of potion'' not ''100 potion''. (Add npc text example here?) |
|||
Some examples: |
|||
{| |
|||
|- |
|||
|potion |
|||
|bottle of potion |
|||
|- |
|||
|leather legs |
|||
|pair of leather legs |
|||
|- |
|||
|wine |
|||
|glass of wine |
|||
|- |
|||
|plate armor |
|||
|suit of plate armor |
|||
|- |
|||
|meat |
|||
|piece of meat |
|||
|} |
|||
To add such a grammatical prefix to NPC speech and speech recognition, edit [http://arianne.cvs.sourceforge.net/viewvc/arianne/stendhal/src/games/stendhal/common/PrefixManager.java src/games/stendhal/common/PrefixManager.java]. |
|||
{{TODO|The new structure needs documentation on the different options for register, registerEnd and registerPrefix.}} |
|||
= Add to game= |
= Add to game= |
||
==Dropped by creature== |
==Dropped by creature== |
||