Stendhal NPC Coding: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
m : changed to ; oops
imported>Kymara
Line 78: Line 78:


protected void createDialog() {
protected void createDialog() {
// Lets the NPC reply with "Hallo" when a player greets him. But we could have set one inside the ()
// Lets the NPC reply with "Hallo" when a player greets him. But we could have set a custom greeting inside the ()
addGreeting();
addGreeting();
// Lets the NPC reply when a player says "job"
// Lets the NPC reply when a player says "job"