File: archininventory.py

package info (click to toggle)
crossfire-maps 1.75.0%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 275,656 kB
  • sloc: python: 7,711; sql: 92; sh: 73; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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