[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 16:02:13 CDT 2010
A page in your DokuWiki was added or changed. Here are the details:
Date : 2010/03/23 16:02
User :
Edit Summary:
@@ -247,9 +247,11 @@
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 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.
+ 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, so if you want to give an item that is similar to one that might come from the NPCs treasure list, then that should go their too.
+
+ You will particularly want to use the NPC_Gift_Box if you have any easily accessible NPCs who are rewarding Inaccessible quests. (eg, someone in a town who asks you to fetch something from a very deep dungeon).
== givecontents ==
This is like giveitem, except that it gives whatever is in the container specified, rather than the container.
@@ -329,5 +331,16 @@
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.
+ ==== How Do I? ====
+
+ The following are common things to want to do, and how to go about doing them.
+
+ * Make an object either be given in a dialogue, or be found on the corpse of the NPC when killed, but not both?
+ First of all, put one copy of the item in an NPC_Gift_Box (this is the copy that will be tied to the dialog), and one on the NPC directly.
+ Make sure that the same messages that cause the item(s) to be given to the player, also set a quest step (if you have no suitable quest, then you can create a simple one-step quest which is hidden ** TODO **)
+ Next, put an event_death listener on the NPC
+ Use the script **Script not written yet** with the options **TODO** to remove the copy of the object from the monster's inventory if they are killed by a player who is past a certain stage in the given quest.
+
+ Now the player can either kill the NPC and claim the item, or he can talk to him and claim the item, but can not talk to the NPC, get the item, then kill the NPC and get another copy of the item.
IP-Address : 81.141.60.247
Old Revision: http://wiki.metalforge.net/doku.php/user:cavesomething:guide_to_quest_dialogs?rev=1269376721
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