![]() |
|
|
#16 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
For making a quest a one time quest. You use the SetOneTimeQuest function in the ai, set to 0 for not completed, 1 for completed. You then use GetOneTimeQuest func to find out if they have completed it.
Also in order to do the quests the right way, you will have to add them into quest_pch and quest_pch2. quest_pch is simple just like item_pch [quest_name]<tab>quest_id quest_pch2 is just for items used in the quest. quest_id<space>number_of_items_used<space>then each item id. example: 262 1 707 262 is the quest id for fungus sac quest. 707 is the item id for the fungus sacs you collect. since 707 is the only item, 1 is the second number. If there was another item with id 708 it would look like this: 262 2 707 708 The item ids listed in quest_pch2 are the ones that get removed when you abort the quest. To make the quest display clientside you will have to add the quest to the questname-e.dat file in your system folder. In that file the quest_id is the id of the quest you used in quest_pch and quest_pch2. Then level is what step the specific entry is for. If theres 4 steps in your quest, questname-e.dat should have 4 different entries with the same quest ID. Each entry would have a level from 1 to 4. This is also where you add the description, and the item lists in quest accepted box. You can have it display a count for any item you want, even if they aren't included in quest_pch2. But only the ones in quest_pch2 will be deleted if you abort the quest. In the AI you will use the SetMemo and SetMemoState functions to start the quest, and to progress through the steps in the quest. None of this is proven, but it's what I have put together from playing with quests a bit. I'm currently working on writing a custom quest of my own, when I'm finished I can post more detailed instructions. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|