[Crossfire-wiki] [Crossfire DokuWiki] page changed: user:cavesomething:guide_to_quest_dialogs

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Thu Mar 25 20:34:39 CDT 2010


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2010/03/25 20:34
User        : cavehippo
Edit Summary: explain QuestEssentialUntil.py

@@ -544,9 +544,21 @@
  1>2 means, if the player is currently at step 1, move them to step 2
  
  if the player were not at either step 0 or 1 in this example, then nothing would happen when the event triggered.
  
- NB: Be careful about binding to event_pickup for items that are not taken away as part of a quest soon afterwards, especially for restartable quests, an event_pickup will return 
+ NB: Be careful about binding to event_pickup for items that can be dropped and picked up multiple times, see the next section for how to stop that happening.
+ 
+ ==== QuestEssentialUntil.py ====
+ 
+ This script should be bound to the drop event of items. It prevents players disposing of quest items in a way that would make the quest impossible to finish. It should be used as in the following example.
+ 
+ {{user:cavesomething:questdrop.png|}}
+ 
+ Here you have the script bound to an event on the 'mcguffin'. If the player tries to drop the mcguffin and has started the quest 'testquest2' but isn't yet up to step 40, he won't be able to drop the item, if he has passed that stage, he will be able to drop the item, but it will be considered god-given and disappear (in the same way that starting equipment does).
+ 
+ If the player has never started the quest, then: 
+   - He should never have been able to get hold of the item
+   - It will disappear when dropped.
  
  ===== General Principles/Advice =====
  
    * If you have a 'takeitem' instruction in a dialog's post block, you should always have a matching 'item' check in the 'pre' block. - possible exception, if you want to take '0' (ie, all) of an item, whether the player has it or not.


IP-Address  : 81.141.60.247
Old Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs?rev=1269566111
New Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list