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