Crossfire Server, Trunk
archininventory.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # archininventory.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 pre rule of 'archininventory'
5 # The syntax is ["archininventory", "arch"]
6 # To deliver a True verdict, the player must have in his inventory as least one
7 # item of the specified archetype.
8 # This is useful to check for skills, or spells, the player knows.
9 #
10 
15 
16 arch = args[0]
17 if character.CheckArchInventory(arch) == None:
18  verdict = False