# Translating itype\_id into screen name

**URL:** <https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841>\
**Category:** The Toolbox\
**Created:** [November 10, 2015, 6:32pm UTC](https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841 "2015-11-10T18:32:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 10, 2015, 6:32pm UTC](https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841/1 "2015-11-10T18:32:47Z")

</div>

I have some code in which I have itype\_ids which I want to print to the screen using ityp::nname. In itype.h there is a mention of a master itype map in which I can look up itypes by itype\_ids, but I can’t find it. Anyone know where this map is, or what’s it called?

(itype.h:451)

```auto
struct itype {
...
    // unique string identifier for this item,
    // can be used as lookup key in master itype map
    // Used for save files; aligns to itype_id above.
    std::string id;
...
}
```

---

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 10, 2015, 6:43pm UTC](https://discourse.cataclysmdda.org/t/translating-itype-id-into-screen-name/10841/2 "2015-11-10T18:43:47Z")

</div>

I found it. I had overlooked item::nname(itype\_id)
