Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Adding Guild Mission

...

Now, you're NPC will be able to create a new guild for you.

Notice: Creating a guild can be expensive, if you don't have enough money you can:

  • Open the entities_game_service_default.cfg file and change the variable GuildCreationCost to 0, which gives you GuildCreationCost = 0;.
  • Or you can use a command to give you some money: /a Money 1000000 (execute this command in the chat dialog)

...

We are gonna create a new guild mission and a new solo mission that some guild members will have to complete. 
Only the guild leader will be able to pick this mission.

The objectives of this mission are:

  • 2 guild members will have to complete a solo mission
  • The guild members will have to kill a total of 2 yubos

...

Here is what you should have in your tree (i set the title of the mission tree to GUILD_MISSION)

 

 

 

Image RemovedImage Added

Properties

Now that you have a mission tree it's time to set its properties.
Fill the properties of the mission tree like this (double click on the mission tree to see the properties window):

Image Modified

  • The name is just the name you want to set for the world editor.
  • The audience must be Guild because it's a guild mission.
  • I set the giver primitive to urban_newbieland.primitive because i want a NPC from the urban_newbieland primitive to give us the mission. If you don't have this primitive you can learn how to create a new NPC that gives mission in this article: Adding Quests.
  • I set the mission category to Killing.
  • I set mission description to: GUILD_MISSION_DESC. The mission description must be a language code that you must add to the language files.GUILD_MISSION_DESC does not exist in those files so the description of the mission will simply be GUILD_MISSION_DESC.
  • I set the mission giver to: $givervar@fullname$. We will see later what it means.
  • I set the mission title to: GUILD_MISSION_TITLE. (Same remark that for the mission description).
  • You don't see it in the screenshot but i checked the replayable radio box to allow us to complete this mission several times.

I told you to set the mission giver to: $givervar@fullname$. It's actually a variable that contains the name of the NPC that will give the mission.
Do a right click on the variables item in the tree and select Add var_npc.
Fill the window like this:

Image RemovedImage Added

The NPC is a NPC from the urban_newbieland primitive so if you don't have it, just fill the form with the NPC you have.

...

Because one of the objectives of this mission is to complete another mission twice (by 2 guild members), we must spawn this mission in the guild members' quest journal.
To do so, we will add a new pre-action that will spawn the mission.
Do a right click on pre_actions and select Add spawn_mission.

Fill the form like this:

Image RemovedImage Added

  • I set the giver name to: chiang_the_strong because the mission i want to spawn is given by him.
  • I checked guild because i want the mission to be spawned for each guild member connected.
  • I set the mission name to: SOLO_GUILD_MISSION because the solo mission will have this name.

...

Do a right click on the objectives item and select Add do_mission.

Fill the form like this:

Image RemovedImage Added

  • For the mission names put: SOLO_GUILD_MISSION 2. It means that the objective is to complete the mission called SOLO_GUILD_MISSION 2 times and that's what we want here.
  • I set the overload objective to MIS_DO_MISSIONMIS_DO_MISSION is a language code and the text of this code will be displayed as a replacement of the objective text.

Now we have to create the second objective.
Do a right click on the objectives item and select Add kill.

Fill the form like this:

Image RemovedImage Added

  • Set fauna/quantity to: chdfa1 2 . It means that the objective is to kill 2 creatures with the code chdfa1 (it's the yubos).

...

First we are gonna add the money reward for the guild. Do a right click on the post_actions item and select Add recv_money.

Fill the form like this:

Image RemovedImage Added

  • We set the amount to: 100.
  • We check the guild option, which means that the money must be delivered in the guild inventory.

...

We must now define the properties of this mission.

Fill the form like this:

Image RemovedImage Added

  • Set the name to: SOLO_GUILD_MISSION because that's the name we used in the guild mission to spawn the solo mission and for thedo_mission objective.
  • The audience is now solo because it's a solo mission.
  • I also set the giver primitive to: urban_newbieland.primitive because my NPC is in this primitive.
  • I set Killing for the category.
  • I set SOLO_GUILD_MISSION_DESC for the mission description.
  • I set the mission giver to: $givervar@fullname$. (We will set this variable like we set the previous one for the guild mission).
  • I set the title to: SOLO_GUILD_MISSION_TITLE.
  • I checked not_proposed because i don't want to see this mission in the mission list of the giver NPC.
  • I set replayable because i want to be able to replay this mission.

...

Fill the window like this:

Image RemovedImage Added

The NPC is a NPC from the urban_newbieland primitive so if you don't have it, just fill the form with the NPC you have.

...

The objective is to kill one yubo. So do a right click on the objectives item and select Add kill.

Fill the form like this:

Image RemovedImage Added

  • I set fauna/quantity to: chdfa1 1 because we want to kill 1 yubo (defined by the code chdfa1).

...

You should see something like this (maybe you don't have all the primitives i have but it's not important):

Image RemovedImage Added

No click on VALIDATE and then click on COMPILE. If everything is correct the mission should be compiled.

...