Post-dialog script to give a knowledge item.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18143 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2012-05-20 17:50:22 +00:00
parent 3b2c8502d2
commit 6fcfb9c565
1 changed files with 16 additions and 0 deletions

View File

@ -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)