Mercurial > skaapsteker
diff scripts/npc-test @ 521:5a8a7f17597d
Add support for 'if': '...' to dialogue choices.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 23:36:05 +0200 |
parents | b48c194c4af9 |
children |
line wrap: on
line diff
--- a/scripts/npc-test Sat Apr 09 23:33:14 2011 +0200 +++ b/scripts/npc-test Sat Apr 09 23:36:05 2011 +0200 @@ -39,7 +39,7 @@ text = text.encode('utf-8') print "%s:" % dsm.state, text print "--" - for i, choice in state.choices: + for i, choice in dsm.choices(): print "%d: %s" % (i, choice) if state.auto_next: print "N: Next" @@ -89,6 +89,7 @@ print " Test on_entry and on_exit for state %s" % state_name state.enter(my_locals) state.leave(my_locals) + list(state.choices(my_locals)) print "ok"