Nicolas Weeger
4217a11b56
Fix Scorn's smith dialog
2023-04-13 19:48:14 +02:00
Nicolas Weeger
20b385f928
Inform of given/taken items during dialogs
2022-10-09 10:29:59 +02:00
Kevin Zheng
f53892772e
Respond to standard greeting
2021-08-27 11:12:11 -07:00
Kevin Zheng
792afa0cba
Fix with Python 3
2021-08-27 11:12:11 -07:00
partmedia
fc35ab5998
Fix print()
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@21036 282e977c-c81d-0410-88c4-b93c2d0d6712
2019-11-27 23:25:27 +00:00
akirschbaum
c018d89c01
Remove redundant semicolons.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20286 282e977c-c81d-0410-88c4-b93c2d0d6712
2016-06-19 15:19:52 +00:00
silvernexus
a874adeb8a
Replace two uses of dict.has_key() in python dialog scripts with use of "in" operator.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20269 282e977c-c81d-0410-88c4-b93c2d0d6712
2016-05-21 03:50:17 +00:00
partmedia
82f00e3526
Patch #332 : Add Eliza chatterbot script for Crossfire
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18751 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-07-07 14:57:47 +00:00
akirschbaum
5e430c833f
Remove trailing whitespace.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18703 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-05-09 11:08:11 +00:00
ryo_saeba
3becab75b8
Tentative fix for a Windows bug with 'include' in dialogs.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18568 282e977c-c81d-0410-88c4-b93c2d0d6712
2013-01-29 19:39:04 +00:00
ryo_saeba
6fcfb9c565
Post-dialog script to give a knowledge item.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18143 282e977c-c81d-0410-88c4-b93c2d0d6712
2012-05-20 17:50:22 +00:00
ryo_saeba
0737416c01
Ensure items were removed.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14501 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-05-29 18:28:07 +00:00
ryo_saeba
8870b46365
Quanties can be 0 for non merging, take that into account.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14497 282e977c-c81d-0410-88c4-b93c2d0d6712
2011-05-29 17:50:39 +00:00
ryo_saeba
4d433955d8
Pre-condition script, checking for some archetype in the inventory.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13388 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-06-12 16:50:41 +00:00
ryo_saeba
5ecbcdb6d7
Fix comments.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13370 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-06-06 15:14:56 +00:00
ryo_saeba
88fc3f0db4
Script to check if a player knows (through the knowledge system) something or not.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13369 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-06-06 15:06:48 +00:00
ryo_saeba
1ab27daf16
Hook to animate through cfanim.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13344 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-30 14:27:37 +00:00
ryo_saeba
764c046bdf
Add a 'questdone' precondition to vary dialogs.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13339 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-30 10:43:07 +00:00
ryo_saeba
e0538867c4
Add 'npctoken' and 'setnpctoken' pre and post conditions, to keep data in NPC instead of player.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13336 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-30 10:11:58 +00:00
ryo_saeba
279478325d
Fix 'WriteKey()' needing a string, not an integer.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13327 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-29 21:44:05 +00:00
ryo_saeba
c3a992c3ef
Use the 'talked_to' key to make NPCs stop when talked to.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13326 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-29 21:22:45 +00:00
cavesomething
9ccec00729
Remove stub code, this is likely to be handled in a separate check
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13237 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-15 21:40:22 +00:00
cavesomething
ce3cf322eb
Make quest pre-conditions work correctly with ranges of stages
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13236 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-15 21:39:30 +00:00
cavesomething
54d593bf80
Add a check for the message length in dialogs and give a warning if it is exceeded (This should just result in truncation server-side)
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13218 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-15 01:32:16 +00:00
cavesomething
16804860a1
Fix the counting of rules, errors and warnings in included files
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13166 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-10 18:16:29 +00:00
cavesomething
ba77a3862f
Change the names of the recognised fields
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13165 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-10 18:15:16 +00:00
ryo_saeba
b5b9dfda24
Add 'replies' to the dialog system, to let the player know what she can say.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13158 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-08 13:16:13 +00:00
cavesomething
59ce1f64fa
Check multiple token conditions correctly
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13144 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-07 12:19:43 +00:00
cavesomething
49eedf7f5f
Fix parsing of stage numbers
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13130 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-05 15:02:44 +00:00
cavesomething
46f0d65cb7
Add useage note in comments
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13129 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-05 11:42:37 +00:00
cavesomething
9f159a519a
Add dialog_check.py - a script to check dialog files for common errors.
...
Add ## DIALOGCHECK blocks to all existing action scripts
Allow the pre 'quest' check to express ranges of stages or an exact
stage to be at
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13124 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-05 11:11:23 +00:00
cavesomething
96d5f0fd05
Allow include blocks to use either relative or absolute paths to reference other .msg files.
...
Maps still need to specify a full path in the slaying field of an event say.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13121 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-05-05 10:46:35 +00:00
cavesomething
1c6503f49c
Allow include rules to contain a "pre" block which will be evaluated to decide
...
whether to allow the file(s) to be included. This is treated in exactly the same
way as the "pre" blocks for all other rules.
A test map demonstrating this in use is included.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13049 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-30 17:19:34 +00:00
cavesomething
bb1f5d66cf
Break out the CFDialog python script into a dispatcher for a number of smaller, action oriented scripts.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13014 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-27 23:43:20 +00:00
cavesomething
22e874afb9
Change the npc_dialog.py file to allow message files to include other message
...
files.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13007 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-27 17:04:29 +00:00
cavesomething
a2fe1ab50d
Updates to the dialog handling files to support more powerful syntax
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12992 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-27 08:43:11 +00:00
cavesomething
52549351f5
Move npc_dialog.py to the dialog directory rather than misc/
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12991 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-27 08:40:30 +00:00
cavesomething
c99ff23ca6
Revert the files added in commit 12790, these will be created from the original versions instead.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12990 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-27 08:39:14 +00:00
cavesomething
1ceafbb899
Add CFNPCDialog.py and the wrapper script dialog/npc_dialog.py, a wrapper script for advanced dialog handling.
...
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12970 282e977c-c81d-0410-88c4-b93c2d0d6712
2010-04-26 15:34:26 +00:00