Stendhal Quest Coding - Part 3: Difference between revisions
Content deleted Content added
imported>Kymara |
imported>Kymara |
||
Line 172:
=== getMinLevel ===
This piece of meta information suggests the minimum level of player who may be expected to completed the quest. It's not a hard requirement - ChatConditions on the level should be used if you really want to add a level restriction, when the NPC offers the quest.
This value is used in the travel log and for other NPCs who might hint that you start unstarted quests - they won't hint at unstarted quests beyond your level. If the value is 0, i.e. any player can do it, you don't need to add this method, as this is the default (though, BeerForHayunn does explicitly set the value to 0 and there is no harm in this.)
<source lang="java">
@Override
public int getMinLevel() {
return 10;
}
</source>
=== getRegion ===
| |||