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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat Oct 29 06:56:48 CDT 2011


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

Date        : 2011/10/29 06:56
User        : ryo
Edit Summary: add special archetypes, first pass

@@ -749,11 +749,33 @@
  ===== Binding dialog and NPC =====
  Once you have created the ''.msg'' file and defined the quest, open the map containing the NPC you wish to have interact. Add to its inventory a ''npc_dialog'' archetype (it is located in the "system" tab of the "archetypes panel"), and set the name to the ''.msg'' file.
  
  That's it, your NPC will interact based on your dialog rules.
+ 
  
  =====Interacting with quests outside of Dialog =====
  We have covered how to handle quest updates in Dialog, and how to define the quests that are updated, but what about updating a quest in response to picking up an object, killing a particular monster or reaching a certain place?
+ 
+ Interaction is based on adding archetypes in the inventory of NPCs, monsters or items you wish to add special behaviour to.
+ 
+ Archetypes are located in the ''system'' tab of the "Archetypes" panel of Gridarta.
+ 
+ They need to have their name defined to the quest parameters to match to interact.
+ 
+ ==== quest_advance_apply ====
+ 
+ Advances a quest when the conditions are futfilled.
+ 
+ ''name'' must be set to ''questname rule1 rule2 ...'', with
+   * ''questname'' the quest's internal name, for instance ''scorn/CoffeeGoose''
+   * ''rule1'', ''rule2'', ... are state intervals, in the format ''n-p>q'', with ''n'' and ''p'' defining the interval the quest's step must be, and ''q'' the new step to set. ''-p'' can be omitted, in which case the state must be the specified value.
+ 
+ Example:
+   * ''name darcap/Elemental-Water 10>20''
+   * ''name scorn/GoblinKing 10>20''
+ 
+ ===== Low-level description =====
+ **Note:** this section is a technical description of the previous one, and intended for developers only. Map makers shouldn't be concerned by that.
  
  In the map editor there is the option to bind events to objects, you will already have used this to bind event_say to an NPC.
  
  In order to have map-based updates, you will want to bind other events to items.


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