Crossfire Server, Trunk
giveknowledge.py
Go to the documentation of this file.
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 
14 
15 knowledge = args[0]
16 character.GiveKnowledge(knowledge)