Commit Graph

18 Commits (653760991fc01545146b23d55a5c0ad63422d957)

Author SHA1 Message Date
kbulgrien 1bb1e16719 - Reformat for readability. No functional change.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10637 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-21 07:46:17 +00:00
kbulgrien cb381c6b26 - More clearly document how to write JSONs when pre or postconditions are not
needed by a particular rule.  For the inexperienced, this was a showstopper.
- Dispense with the user defined exception and replace the old handling with a
  more effective debug log message combined with a generic exception.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10636 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-21 07:43:24 +00:00
kbulgrien ba2f19f2dc Modify CFDialog.py to use a list of strings for the keywords instead of the "|"
delimited string for consistency and to reduce the need to specially parse the
string.  There seems no particular reason to stay with the "|" delimiter (and
@match use of it does not seem compelling enough to override the benefit of
removing the oddball parameter from both CFDialog.py and npc_dialog.py scripts.
This commit also updates every known dialog that is affected.  Also updated
are the comments in both dialog scripts to reflect the change.  In CFDialog.py
also pluralize some identifers to better reflect that they are used for lists.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10469 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-15 07:55:59 +00:00
kbulgrien 0e01ae159d Add a comment that references ../scorn/kar/gork.msg as an example of how an
npc_dialog.py conversation can be made player friendly by using multiple
precondition flag values.  Without using this capability, conversation paths
can tend to be too linear or rigid and therefore produce unnecessary player
frustratation.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10467 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-15 05:04:45 +00:00
kbulgrien 5b1661b029 Avoid DeprecationWarning: raising a string exception is deprecated by making
a user-defined exception handler.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10423 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-14 04:44:17 +00:00
kbulgrien 7e26094865 - Documentation improvements and an additional example. No functional changes.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10422 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-11-14 02:45:07 +00:00
ryo_saeba d1e9a82abd Part of patch #1677738: Purple worm (with pythonscript and map), by Mike B.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@8691 282e977c-c81d-0410-88c4-b93c2d0d6712
2008-04-05 07:46:32 +00:00
tchize fb457124b3 Make the gork's treasure quest use python for npc dialog. It's now mandatory to go throught full dialog to get the treasure key, knowing password is not enough
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@8009 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-12-22 13:44:37 +00:00
tchize 0f8c2e86ab Update match rules of CFDialog, add a script to use it
easily in maps, update newbie house so the wise sigmund
can provide more interactive support to players



git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7968 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-12-18 22:29:42 +00:00
tchize cfa5773ef8 Add a simple to use script that make use of NPC dialog
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7930 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-12-16 15:15:41 +00:00
tchize d0f032623a Modified all print of script to calls to Crossfire.Log(Crossfire.Log(Debug|Error|Info|Monster),message)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7496 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-11-08 23:36:22 +00:00
ryo_saeba 8e6bdd1c89 Make script more robust if enemy changes, only process players.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5951 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-04-06 20:32:18 +00:00
ryo_saeba b9b9e56026 Script: greeting message to enemy.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5949 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-04-06 19:58:53 +00:00
ryo_saeba f866c12b64 Script to have critters say things when they die.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5920 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-04-02 20:00:11 +00:00
gros 044d3851de Update of the Global Events scripts to the new 2.0 CFPython.
Update of the Guild-related scripts to the new 2.0 CFPython.
Update of the remaining scripts to the new 2.0 CFPython.
Gros - 18/10/2005


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3901 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-10-18 18:53:37 +00:00
temitchell 32e9cfab2c - remove item scripts long ago moved into items
- update scripts to remove path (init script does it for us)


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3003 282e977c-c81d-0410-88c4-b93c2d0d6712
2004-12-06 04:48:06 +00:00
temitchell 4b57ac9506 - move event scripts into their own directory
- add README
- add disguise script (warning usage still subject to bug 878949)


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2867 282e977c-c81d-0410-88c4-b93c2d0d6712
2004-08-02 23:38:50 +00:00
temitchell 7ad3e359d6 -fix banksay.py (was a small issue with a missing =)
-add reusable script for adding/removing items
-add two new slotmachines
-add an insult generator


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2376 282e977c-c81d-0410-88c4-b93c2d0d6712
2003-10-06 03:41:36 +00:00