diff --git a/python/dialog/post/giveknowledge.py b/python/dialog/post/giveknowledge.py new file mode 100644 index 000000000..6e163e56c --- /dev/null +++ b/python/dialog/post/giveknowledge.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# giveknowledge.py +# This is one of the files that can be called by an npc_dialog, +# The following code runs when a dialog has a post rule of 'giveknowledge' +# The syntax is ["giveknowledge", "knowledge code"] +# The player will receive the specified knowledge, from its code. +# Note: knowledge code is a specific format, ask on #irc or on the mailing lists. + +## DIALOGCHECK +## MINARGS 1 +## MAXARGS 1 +## .* +## ENDDIALOGCHECK + +knowledge = args[0] +character.GiveKnowledge(knowledge)