Pre-condition script, checking for some archetype in the inventory.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13388 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2010-06-12 16:50:41 +00:00
parent db646673d6
commit 4d433955d8
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# archininventory.py
# This is one of the files that can be called by an npc_dialog,
# The following code runs when a dialog has a pre rule of 'archininventory'
# The syntax is ["archininventory", "arch"]
# To deliver a True verdict, the player must have in his inventory as least one
# item of the specified archetype.
# This is useful to check for skills, or spells, the player knows.
#
## DIALOGCHECK
## MINARGS 1
## MAXARGS 1
## .*
## ENDDIALOGCHECK
arch = args[0]
if character.CheckArchInventory(arch) == None:
verdict = False