# Advanced Faction Interactions

**URL:** <https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797>\
**Category:** The Drawing Board\
**Created:** [April 22, 2019, 10:06pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797 "2019-04-22T22:06:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/matthew_alexander/32/5571_2.png) [@Matthew\_Alexander](https://discourse.cataclysmdda.org/u/Matthew_Alexander)\
**Post date:** [April 22, 2019, 10:06pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/1 "2019-04-22T22:06:46Z")

</div>

An ability to name the players faction/group. Any camps the player makes will be named (insert faction name here) camp. You could also manually change their ultimate goal, primary concern, and what they are involved in. Naming your faction could also allow advanced interaction with other groups. These could include sending soldiers to attack other factions, sending trade caravans, receiving refugees (for varied reasons), constructing specialized sites (and more types of sites, other than camps), claiming sites (such as a city), etc. These interactions would also change your groups ranking, respect, wealth, food supply, and combat ability, based on the interaction’s nature. What do you think?

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [April 22, 2019, 11:50pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/2 "2019-04-22T23:50:40Z")

</div>

Sounds great. Could you please contribute some code to make it happen? Because honestly, improving the faction code has been slow going to me.

---

<div class="post-metadata">

**Author:** ![Matthew\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/matthew_alexander/32/5571_2.png) [@Matthew\_Alexander](https://discourse.cataclysmdda.org/u/Matthew_Alexander)\
**Post date:** [April 24, 2019, 5:02pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/3 "2019-04-24T17:02:50Z")

</div>

Sorry I couldn’t ask earlier, but do you know of any modding tutorials? I haven’t worked with C:DDA’s code before.

---

<div class="post-metadata">

**Author:** ![Junknown](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Junknown](https://discourse.cataclysmdda.org/u/Junknown)\
**Post date:** [April 24, 2019, 5:14pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/4 "2019-04-24T17:14:19Z")

</div>

There is this [guide](https://github.com/CleverRaven/Cataclysm-DDA/wiki/Guide-to-adding-new-content-to-CDDA-for-first-time-contributors) which is very well written, but it focuses on JSON and from what I understand, the things you want to implement would require some C++ coding.

---

<div class="post-metadata">

**Author:** ![Matthew\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/matthew_alexander/32/5571_2.png) [@Matthew\_Alexander](https://discourse.cataclysmdda.org/u/Matthew_Alexander)\
**Post date:** [April 24, 2019, 5:15pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/5 "2019-04-24T17:15:42Z")

</div>

Okay, and thank you. I appreciate your help greatly. Also, what is C++ coding?

---

<div class="post-metadata">

**Author:** ![Junknown](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Junknown](https://discourse.cataclysmdda.org/u/Junknown)\
**Post date:** [April 24, 2019, 5:27pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/6 "2019-04-24T17:27:49Z")

</div>

C++ is the programming language that Cataclysm is made with. Changes involving C++ are much more complicated than simple JSON edits and generally require good knowledge on programming. JSON on the other hand is pretty easy to understand even for non programmers, allowing even people unfamiliar with C++ a way to contribute to the game.

---

<div class="post-metadata">

**Author:** ![Matthew\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/matthew_alexander/32/5571_2.png) [@Matthew\_Alexander](https://discourse.cataclysmdda.org/u/Matthew_Alexander)\
**Post date:** [April 24, 2019, 6:30pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/7 "2019-04-24T18:30:44Z")

</div>

Okay. Also, do you know where the code for naming a world is located?

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [April 24, 2019, 6:38pm UTC](https://discourse.cataclysmdda.org/t/advanced-faction-interactions/19797/8 "2019-04-24T18:38:37Z")

</div>

it looks like somewhere in src/worldfactory.cpp
