Stendhal Quest Coding - Part 3: Difference between revisions
Content deleted Content added
imported>Kymara |
imported>Kribbel m replace 2 old links |
||
| (20 intermediate revisions by 2 users not shown) | |||
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 ===
If there is a specific region matching one of the Stendhal regions, as defined in [
<source lang = "java">
Line 200 ⟶ 209:
== Further Reading and Complete Code ==
You can have a look at the [
The pages might be of interest to you:
Line 206 ⟶ 215:
* [[HowToAddMapsServerStendhal|How to add new maps to server]]
* [[HowToAddMapsServerStendhal#Adding_NPC|How to create NPC]]
* [[How to test NPC Parser]] - ''this can help with trouble shooting if an NPC isn't understanding a response''
[[Category:Stendhal]]
| |||