Crossfire Server, Trunk
setnpctoken.py
Go to the documentation of this file.
1
# -*- coding: utf-8 -*-
2
# setnpctoken.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 post rule of 'settoken'
5
# The syntax is ["setlocaltoken", "tokenname", "valuetosetto"]
6
# this can then be checked by a token condition that looks for the
7
# value of the token
8
# The token is kept in the NPC's data, and will be lost if the
9
# map containing the NPC resets.
10
16
17
self.setNPCStatus(args[0],args[1])
crossfire-crossfire-maps
python
dialog
post
setnpctoken.py
Generated by
1.8.17