Skip to content
Snippets Groups Projects
Commit 89a58c29 authored by dg's avatar dg
Browse files

auto assign quets when killing npcs

git-svn-id: http://svn.net-core.org/repos/t-engine4@525 51575b47-30f0-44d4-a5cc-537603b46e54
parent 48622ed2
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ newEntity{ define_as = "MINOTAUR_MAZE",
ai = "dumb_talented_simple", ai_state = { talent_in=1, },
on_die = function(self, who)
who:resolveSource():grantQuest("starter-zones")
who:resolveSource():setQuestStatus("starter-zones", engine.Quest.COMPLETED, "maze")
end,
}
......@@ -62,6 +62,7 @@ newEntity{ define_as = "OLD_MAN_WILLOW",
ai = "dumb_talented_simple", ai_state = { talent_in=3, },
on_die = function(self, who)
who:resolveSource():grantQuest("starter-zones")
who:resolveSource():setQuestStatus("starter-zones", engine.Quest.COMPLETED, "old-forest")
end,
}
......@@ -83,6 +83,7 @@ newEntity{ define_as = "SANDWORM_QUEEN",
ai = "dumb_talented_simple", ai_state = { talent_in=2, },
on_die = function(self, who)
who:resolveSource():grantQuest("starter-zones")
who:resolveSource():setQuestStatus("starter-zones", engine.Quest.COMPLETED, "sandworm-lair")
end,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment