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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Tue Mar 23 13:54:05 CDT 2010


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

Date        : 2010/03/23 13:54
User        : 
Edit Summary: describe NPC_Gift_Box

@@ -3,8 +3,10 @@
  
  The following is a guide to creating your own dialog-driven quest.
  
  By dialog-driven, I mean that most of the events in the quest occur from talking to NPCs.
+ 
+ Dialogs can be used separately from any quests at all, but because quests are going to use them, we will cover them first.
  
  You can construct a quest without speaking to any NPCs, but it is harder to write a narrative when you do that.
  
  ===== Dialogs =====
@@ -134,14 +136,16 @@
    * Level
  
  == Quest ==
  
- Quest is followed by two fields, the name of the quest, and the stage that the player must be at or past.
+ Quest is followed by two fields, the name of the quest, and the step that the player must be at or past.
  eg
  <code>
  ["quest", "testquest", "5"]
  </code>
  Checks that the player has reached at least step 5 of the quest 'testquest'
+ 
+ Have a look at the 'Quest' Section for an explanation of the 'steps'
  
  == Item ==
  
  Item is followed by the name of the item to check for, and optionally the number that are required.
@@ -241,9 +245,10 @@
  The second of these gives the player 74 money, made up of the smallest possible number of platinum, gold and silver coins. The NPC does **not** need to have money in his inventory in order to give it.
  
  The name should be the name of the item to be given, or money. The number may be omitted, if so it is treated as 1.
  
- Note that items which are given away are in the NPCs inventory, so if the NPC is killed, they will drop. If you don't want to be able to acquire these items through killing the NPC, then you should set the god-given flag on the item. - This is removed when the item is given to the player.
+ Note that items which are given away are in the NPCs inventory, so if the NPC is killed, they will drop. 
+ If you **don't** want to be able to acquire these items through killing the NPC, then you should create an NPC_Gift_Box item in the NPCs inventory, and put the items in there. This is checked before the rest of the NPCs inventory is.
  
  == takeitem ==
  
  Removes the given number of an item from the inventory of the player.
@@ -306,6 +311,12 @@
  //$you// is replaced by the name of the player
  //$me// is replaced by the name of the NPC
  
  Obviously, it probably doesn't make sense to use $you on the first line of dialogue that will be spoken, unless there is a story-based reason for the NPC to know who the player is.
+ 
+ 
+ ==== Quest Definition ====
+ 
+ Quests are defined in a text file, in a similar way to archetypes. There are a collection of fields that may be used to express different properties of the quest.
+ 
  
  


IP-Address  : 81.141.60.247
Old Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs?rev=1269309665
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