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