maps/python/dialog/post/giveknowledge.py

17 lines
505 B
Python
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# -*- 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)