====== An commented example of mission creation ======
The [[world_editor|World Editor]] must first of all be installed. The [[en:world_editor:missions]] and [[fr:ds:sitem:mission_doc]] tutorials are an indispensable complement.
Perhaps we could comment on different missions to understand a broader panel?
Download [[https://git.khaganat.net/khaganat/khanat-ressources]]: Our resource directory(that we will work from) is "newbieland".
===== Mission 1 : =====
==== Preparation ====
Before opening the world editor, we must know what our mission will contain, for instance:
* What NPC's will the player interact with?
* What areas are we talking about?
* What are the steps that he/she must validate, and what adventures he/she can/must go through?
* What sort of quest will it be?
* Are the objects already modeled? How and what are they called?
* Etc.
So, first of all.. you have to write down(for simplicity) the mission and note the various elements that will be used.
Here is an example we can look at: [[um1>fr:gameplay:jimman#qabb20160603bfaire_du_pain|Making bread]].
==== Opening primitives ====
Open World Editor. Go to ''Project'' then ''Add Landscape'' then choose ''newbieland.land'' from your ''khanat-resources/continents/newbieland/'' folder.
Click on ''Project'' then ''Add Primitive'' and then choose all the primitives of your ''khanat-resources/primitives/newbieland/'' folder.
Unfold the mission primitive ''missions_newbieland.primitives'' with a left click. Right click on the first mission tree (here, ''missions_newbieland'') and select ''Add mission_tree''. \\
{{:fr:world_editor:we_mission1.jpg|Add_mission_tree Selection}} \\
The mission property window opens. \\
{{:fr:world_editor:we_mission2.jpg|Property of the mission.}} \\
The more this property window is filled, the easier it gets :-)
* **name** : Here it is ''qabb20160603b''
* **audience** : Choose ''solo''.
* **giver_primitive** : The primary NPC where the NPC is located, or ''urban_newbieland.primitive''
* **mission_category** : ''loot''
* **mission_description** : ''qabb20160603b_DESC''
* **mission_giver** : ''$givervar@fullname$''
* **mission_icon** : ''generic_travel''
* **mission_title** : ''qabb20160603b_TITLE''
* **need_validation** : Checked
* **phrase_auto_menu** : ???
* **player_replay_timer** : 36000 (Corresponds to 1H offside-jeu).
* **replayable** : Checked
==== Save your work ====
Make file>Save As ... and name your current job. The .worledit files are used to load the .land and primitives as an "set" at once.
Back up regularly, the tools are(sorry to say) unstable at this given time.
==== Compile the mission ====
Once the mission is finalized, it needs to be compiled. Penultimate the "icon" in the menu bar, **OR** ''mission_compiler_fe_r.exe'' with world_edit.
{{:fr:world_editor:we_mission3.jpg|Compile the mission}}
The mission will be added to the character ''giver'' in the primitive ''urban_newbieland.primitive''
{{Tag>world_editor mission primitive draft tools}}