Debian Codegraph @

python/dialog/post/settoken.py

raw
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 ## DIALOGCHECK
11 ## MINARGS 2
12 ## MAXARGS 2
13 ## .*
14 ## .*
15 ## ENDDIALOGCHECK
16
17 self.setStatus(args[0],args[1])