Debian Codegraph @

python/dialog/post/giveknowledge.py

raw
1 # -*- coding: utf-8 -*-
2 # giveknowledge.py
3 # This is one of the files that can be called by an npc_dialog,
4 # The following code runs when a dialog has a post rule of 'giveknowledge'
5 # The syntax is ["giveknowledge", "knowledge code"]
6 # The player will receive the specified knowledge, from its code.
7 # Note: knowledge code is a specific format, ask on #irc or on the mailing lists.
8
9 ## DIALOGCHECK
10 ## MINARGS 1
11 ## MAXARGS 1
12 ## .*
13 ## ENDDIALOGCHECK
14
15 knowledge = args[0]
16 character.GiveKnowledge(knowledge)