The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.

Help:How to edit item acquisition

From Path of Exile 2 Wiki
Jump to navigation Jump to search

In Path of Exile 2 there are quite a few items dropping in various places, some are random and some are restricted to certain areas. As the number of items and areas where it drops increases the harder it is to maintain multiple pages with the same information. To minimize the number of pages to manually edit it's been decided to store drop restriction information on the item pages only. Other pages then have to query for that information from a database. This will reduce repetitive edits across the wiki and increase accuracy for less popular pages.

The "Item acquisition" section

{{Item acquisition}} is intended to list the various ways an item can be obtained. If an item...

  • drops in specific areas, add the area ids to |drop_areas=
  • drops from specific monsters, add the monster ids to |drop_monsters=
  • has other drop restrictions, add a brief explanation to |drop_text=
  • is obtained from a recipe, such as a divination card exchange or the Reforging bench, use |recipe<i>_part<j>_<item_page/amount>=. See § Adding recipes

It will also add quest and vendor reward information based on the data in Module:Quest reward.

For items that follow regular drop mechanics, no changes to the item template are required.

See {{item}} for more information about how the parameters are used.

Editing and retrieving area id

When to edit the area id

Drop restrictions for the area id should only be used for cases the item can only specifically appear in a particular area.

This means if it is obtained from specific monsters found in specific areas, that information should go to drop_text and not drop_areas. Likewise, for items that just happen to have a high drop level requirement, this parameter should not be used.

Get the area id

Before being able to specify how an item is acquired (say from a map), you will need to make note of the place's area id.

It can be found on the wiki page for the area, in an infobox beside the Id column. For example, for Rustbowl map the id is MapRustbowl.

File:Locate area id.jpg

You cannot add the item into the area, instead you add the area to the item.

Edit the item page

To add or modify where an item is acquired, you must edit the {{Item}} infobox on that item's page (e.g.).

First edit the page using Edit Source or Edit (make sure to switch it to Source Editing in the editor dropdown menu)

File:Item page edit button.jpg

Edit the Item infobox data

Find the section starting with {{Item, and the first line that reads drop_areas =.

This is a comma separated list of area ids. Add the new area id you made note of above (say MapRustbowl for the Rustbowl map) to the list. Do not replace old areas, they're still relevant for old areas. The tables will filter them out instead in the future.

Save your changes

Save your changes, specifying where you got the information in the Summary box (e.g. Personal drop)

The {{item acquisition}} template caches its results. To get your changes to appear right away in the "Item acquisition" section, click the Purge cache link.

File:Purge cache link.jpg

Thank you for contributing to the wiki!

Adding recipes

A recipe describes a way to obtain a specific item (result) from one or more other items (parts). In game terms, recipes include the use of the Reforging bench, divination card exchanges, and any other ways of transforming one or more items into another item.

Recipes can be added as parameter to the {{Item}} template by using the |recipe... set of parameters. Those parameters must be edited on the page the reforging bench or upgrade path produces, and not the ingredients. After the recipe has been correctly added, it will show up on all ingredient pages accordingly using the {{item acquisition}} template.

Sets

This means we'll have two sets to add to the |recipe... parameters. Naturally we start each set at 1 and increment by one for each:

|recipe1
|recipe2

The sets will appear in the order given here, so set1 will appear before set2 in the {{Item acquisition}} template. Generally we go from most-specific to least-specific here, so a divination card granting a specific unique should be before a divination card granting random uniques.

Groups

Groups are used to for each particular ingredient in a recipe.

|recipe1_part1
|recipe1_part2
|recipe1_part3
|recipe1_part4
|recipe2

Now we need to tell the template which items we're looking for. There 3 ways to do this;

  • by item name using ..._item_name
  • by the page on the wiki using ..._item_page
  • by the metadata id using ..._item_id

Generally speaking the name works as long there is only one item with a name. If there isn't, we need to use page (for cases like Shrine Sceptres for example, which has 3 variants). In our case we don't have any pages with duplicates, so we can simply use the name:

|recipe1_part1_item_name = Example item 1
|recipe1_part2_item_name = Example item 2
|recipe1_part3_item_name = Example gem
|recipe1_part4_item_name = Example currency
|recipe2

The template now knows which items are being used, but now how many of them. Now we just add the amount with the _amount parameter for each group:

|recipe1_part1_item_name = Example item 1
|recipe1_part1_amount    = 1
|recipe1_part2_item_name = Example item 2
|recipe1_part2_amount    = 1
|recipe1_part3_item_name = Example gem
|recipe1_part3_amount    = 1
|recipe1_part4_item_name = Example currency
|recipe1_part4_amount    = 1
|recipe2

There are some special conditions for some of items we haven't covered yet. The conditions are just additional text that is displayed to the user for additional information about the recipe. Those are added with the _notes parameter. These arguments can also contain other templates, for example the colour template {{c}}.

It's easier for people to recognize that we mean normal and rare items when we use the colour. Compare:

  • normal vs normal {{c|normal|normal}}
  • rare vs rare {{c|rare|rare}}

There is nothing noteworthy about the Orb of Chance so we just leave the parameter out.

With all that in mind, we can now add the notes:

|recipe1_part1_item_name = Example item 1
|recipe1_part1_amount    = 1
|recipe1_part1_notes     = {{c|normal|normal}}
|recipe1_part2_item_name = Example item 2
|recipe1_part2_amount    = 1
|recipe1_part2_notes     = {{c|rare|rare}}
|recipe1_part3_item_name = Example gem
|recipe1_part3_amount    = 1
|recipe1_part3_notes     = 1%+ quality
|recipe1_part4_item_name = Example currency
|recipe1_part4_amount    = 1
|recipe2

We're done with the first set at this point. Next we add an example divination card, similar to above we fill out the parameters. This is set 2 and the groups naturally start at 1 again with the divination card being the only item being added.

|recipe1_part1_item_name = Example item 1
|recipe1_part1_amount    = 1
|recipe1_part1_notes     = {{c|normal|normal}}
|recipe1_part2_item_name = Example item 2
|recipe1_part2_amount    = 1
|recipe1_part2_notes     = {{c|rare|rare}}
|recipe1_part3_item_name = Example gem
|recipe1_part3_amount    = 1
|recipe1_part3_notes     = 1%+ quality
|recipe1_part4_item_name = Example currency
|recipe1_part4_amount    = 1
|recipe2_description     = random {{c|unique|unique}} item
|recipe2_part1_item_name = Example divination card
|recipe2_part1_amount    = 4

That's it! Now we just need to place that within the {{Item}} template on the page. See also Help:How to edit item acquisition#Edit the item page

Common issues

  • When previewing pages, templates that queries data cannot display data that hasn't already been stored to the database. Make sure the page edit is correct and save the page anyway.
  • Sometimes pages that queries data doesn't update immediately. Null edit the page to force an immediate update.