Stendhal Quest Coding - Part 3: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
m getRegion: correct external link
imported>Kymara
Line 152: Line 152:


=== getNPCName ===
=== getNPCName ===
Fill in the name of the NPC that the player starts the quest with. You can leave this method out if there is no specific NPC who starts the quest (e.g. the Seven Cherubim quest where you just start meeting any of the angels.) This is unlikely to happen often.
<source lang="java">
@Override
public String getNPCName() {
return "Hayunn Naratha";
}
</source>
Reference functions that gather 'meta' information about the quest use this - for example if an NPC wants to list which NPCs to speak to to start quests in a certain region.

=== getHistory ===
=== getHistory ===
=== getQuestInfo ===
=== getQuestInfo ===