# Add Bandits

**URL:** <https://discourse.cataclysmdda.org/t/add-bandits/11526>\
**Category:** The Lab\
**Tags:** mod\
**Created:** [March 8, 2016, 3:53am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526 "2016-03-08T03:53:45Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [June 11, 2018, 7:35am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/61 "2018-06-11T07:35:21Z")

</div>

Whoo, adding this mod makes you cautious when moving and around light in general; I’ve been bushwhacked several times by roving bandits while crafting.

Try adding “GUILT” to the looter. Their description implies they aren’t full bandits and are more sympathetic. Also consider giving them “STALK” and lower morale and aggression.

You might decrease the default fake stats for the bandits and double their HP or peg their HP to a player’s average HP for a given strength+trait level. Also try lowering some bandits’ special attack range to around their average 50% hit probability range to preserve their ammunition.

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [June 12, 2018, 8:48pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/62 "2018-06-12T20:48:43Z")

</div>

It would make sense for someone new to take up the torch then since OP is not working on it. I would make the assumption he would not mind as he seems to want to pass the torch in his last post here. “Hope this settles some stuff and best of luck to **anybody doing anything with this**.”

So how about it Bork? You seem itching to add to it _hint hint_ ;D

I’d be happy to have NPCs just work at all at this point lol  
I’ve been to bandit bases with land mines surrounding it. But sadly everyone inside sits and lets you just shoot them without any fight. It should be noted that adding timers to NPC would be great. To mimic functions.

…do we have timers? 0\_o

---

<div class="post-metadata">

**Author:** ![Gunpowder17](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gunpowder17/32/5265_2.png) [@Gunpowder17](https://discourse.cataclysmdda.org/u/Gunpowder17)\
**Post date:** [June 12, 2018, 10:10pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/63 "2018-06-12T22:10:09Z")

</div>

Does anyone have a download link where all I have to do is unzip it and that’s it? I don’t feel too confident in messing with files when PKs is involved

---

<div class="post-metadata">

**Author:** ![Karl\_Keimov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/karl_keimov/32/1953_2.png) [@Karl\_Keimov](https://discourse.cataclysmdda.org/u/Karl_Keimov)\
**Post date:** [June 13, 2018, 9:06pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/64 "2018-06-13T21:06:13Z")

</div>

Okay, I’ve updated it. In this version, the bandits have the same range as the player. I’m planning on playing with their accuracy as, at this point, if a bandits with a rifle see you, you’re very, very likely to die, but that can be !!FUN!! too.

The new version is below and the old version is also below for convenience. The old version still works just fine so far as I’ve seen, so if you like the balance there, cool, or if you want to get shot from 65 tiles away (max), have at it with the new version. Also - players now feel guilt for killing looters (v0.12 only).  
If there are any issues, lemme’ know.

Hard mode v0.12 rar  
[https://mega.nz/#!WKgwwQAb!Dd-BYQYY9juKDFYsIYoacL5YtSleyX76ljcQa6rrIOM](https://mega.nz/#!WKgwwQAb!Dd-BYQYY9juKDFYsIYoacL5YtSleyX76ljcQa6rrIOM)

v0.11 rar  
[https://mega.nz/#!bbAD1CSC!zSREEX8OszAuTdWh2odKLdhKxQ4Tb9CNs9WhxUnmKUs](https://mega.nz/#!bbAD1CSC!zSREEX8OszAuTdWh2odKLdhKxQ4Tb9CNs9WhxUnmKUs)  
v0.11 zip  
[https://mega.nz/#!uPhQ0JiJ!TyQgh1ejO8BHUs1ynuFzPmgLLLEgmMOY3e3Kqj-4UVU](https://mega.nz/#!uPhQ0JiJ!TyQgh1ejO8BHUs1ynuFzPmgLLLEgmMOY3e3Kqj-4UVU)

---

<div class="post-metadata">

**Author:** ![Gunpowder17](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gunpowder17/32/5265_2.png) [@Gunpowder17](https://discourse.cataclysmdda.org/u/Gunpowder17)\
**Post date:** [June 14, 2018, 1:40am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/65 "2018-06-14T01:40:55Z")

</div>

I’m playing with spawn rates at 50 and wander spawns on, I have a feeling having more armed men roaming around will actually be a boon to me 😁

---

<div class="post-metadata">

**Author:** ![Arche\_Zwei](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/arche_zwei/32/2220_2.png) [@Arche\_Zwei](https://discourse.cataclysmdda.org/u/Arche_Zwei)\
**Post date:** [June 18, 2018, 10:45pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/66 "2018-06-18T22:45:09Z")

</div>

![051-viggo-mortensen-theredlist](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/5/57a81250005091c1ba80a5e5b6a4109a4986b41c.jpg)  
What do you feel C:DDA should feel like more?

_Poll ([view on site](https://discourse.cataclysmdda.org/t/add-bandits/11526/66))_

---

<div class="post-metadata">

**Author:** ![Arche\_Zwei](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/arche_zwei/32/2220_2.png) [@Arche\_Zwei](https://discourse.cataclysmdda.org/u/Arche_Zwei)\
**Post date:** [June 18, 2018, 10:47pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/67 "2018-06-18T22:47:47Z")

</div>

> [@BorkBorkGoesTheCode](#):
>
> Whoo, adding this mod makes you cautious when moving and around light in general; I’ve been bushwhacked several times by roving bandits while crafting.

That sounds quite intense.

If only there was another NPC to be on the lookout.  
Couldnt game controls switch to an NPC?  
Like, while one is crafting the other is defending…

Silly idea, coding that might be too hard…

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [June 18, 2018, 11:25pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/68 "2018-06-18T23:25:04Z")

</div>

You can fix that by adding  
`"magazine": 100,`  
to bandit death drop groups containing guns. The zombie soldier uses the same method to generate magazines with guns.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [June 23, 2018, 10:34am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/69 "2018-06-23T10:34:49Z")

</div>

Bandits are dropping leather instead of human skin when butchered.

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [June 23, 2018, 9:03pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/70 "2018-06-23T21:03:18Z")

</div>

So the bandits are all played by Jack Palance?

---

<div class="post-metadata">

**Author:** ![TheZoneWizard](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thezonewizard/32/1397_2.png) [@TheZoneWizard](https://discourse.cataclysmdda.org/u/TheZoneWizard)\
**Post date:** [June 25, 2018, 11:26am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/71 "2018-06-25T11:26:39Z")

</div>

How does this fix an NPC when they just sit and be killed? 0\_o

---

<div class="post-metadata">

**Author:** ![Gunpowder17](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gunpowder17/32/5265_2.png) [@Gunpowder17](https://discourse.cataclysmdda.org/u/Gunpowder17)\
**Post date:** [June 25, 2018, 12:31pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/72 "2018-06-25T12:31:32Z")

</div>

You gotta sit with them and give them time. That’s what friends do, when someone is having a rough time you can’t just put more stress on them and expect that to help.

---

<div class="post-metadata">

**Author:** ![Karl\_Keimov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/karl_keimov/32/1953_2.png) [@Karl\_Keimov](https://discourse.cataclysmdda.org/u/Karl_Keimov)\
**Post date:** [June 25, 2018, 3:17pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/73 "2018-06-25T15:17:25Z")

</div>

Can you give me more details on them dropping leather? I tested it a bit just now and have found them to drop the expected human fleshy bits. I haven’t changed anything about their drops that I know of, but that doesn’t mean that something weird hasn’t happened. Which version are you using, which build of C:DDA are you using, and is it only the specific unit “bandit”, or is it all types of bandits?

Or has the issue been otherwise resolved?

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [June 25, 2018, 7:36pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/74 "2018-06-25T19:36:04Z")

</div>

I can’t replicate it. I may have been mistaken.

---

<div class="post-metadata">

**Author:** ![Karl\_Keimov](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/karl_keimov/32/1953_2.png) [@Karl\_Keimov](https://discourse.cataclysmdda.org/u/Karl_Keimov)\
**Post date:** [June 25, 2018, 9:43pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/75 "2018-06-25T21:43:14Z")

</div>

Glad to hear nothing weird was going on.

---

<div class="post-metadata">

**Author:** ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)\
**Post date:** [June 26, 2018, 12:13am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/76 "2018-06-26T00:13:13Z")

</div>

It’s not cannibalism if you just eat their fat:

 ![Screenshot%20(1585)](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/7/75e1b4bc553962137e45de5340b50418fb73e289.jpg)

---

<div class="post-metadata">

**Author:** ![Garfink](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/garfink/32/7873_2.png) [@Garfink](https://discourse.cataclysmdda.org/u/Garfink)\
**Post date:** [June 28, 2018, 4:56am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/77 "2018-06-28T04:56:57Z")

</div>

That doesn’t seem to reflect real-life… right?

---

<div class="post-metadata">

**Author:** ![Agent](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/agent/32/3450_2.png) [@Agent](https://discourse.cataclysmdda.org/u/Agent)\
**Post date:** [October 25, 2018, 10:50am UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/78 "2018-10-25T10:50:25Z")

</div>

I took a shot at tweaking this whilst trying to learn how to mod for this game. I have ambitions to make a Day 0 mod down the line with scenarios set in a cityscape with rioters and mayhem of the very moment the Cataclysm tips over before the majority of humans are killed off.

I had some success working with this mod figuring things out but I ran into a really odd problem I haven’t been able to solve. The bandits in this randomly attack each other when not fighting anything. Working strictly with the Looters, they spawn in groups and will cooperate with each other mostly when fighting anything, but whenever they kill a zombie off they’ll randomly start attacking each other swarming around the spot until they find something else to attack.

I tried making a new monster faction file and changing their faction relationships in a bunch of different ways, changing their tags a little, dialing down their aggression stat but they always ran into this problem where if they stood next to each other without anything to fight they attack one another.

Anyone have any idea on how to solve this? I suppose it’s not terribly important as in the big cities they’re going to be picked off pretty quickly, but I’d like to figure out whats going on here.

On a side note, for anyone else looking at this mod with regards to compatability in the future, I managed to get the spawn list working by adding

“edit-mode”: “modify”,

to the monster groups, so for example

```
"type":"monstergroup",
"edit-mode": "modify",
"name" : "GROUP_ZOMBIE",

```

And then I excised any references to the other monsters so when I update the game, when the spawn lists are substantially changed, hopefully this mod will continue to work

---

<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:** [October 25, 2018, 2:42pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/79 "2018-10-25T14:42:52Z")

</div>

That’s really weird. NPCs with the same faction shouldn’t attack each other. Can you post the JSON you’re using to define the Looter’s faction and the NPCs you’re spawning?

---

<div class="post-metadata">

**Author:** ![Agent](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/agent/32/3450_2.png) [@Agent](https://discourse.cataclysmdda.org/u/Agent)\
**Post date:** [October 25, 2018, 9:34pm UTC](https://discourse.cataclysmdda.org/t/add-bandits/11526/80 "2018-10-25T21:34:50Z")

</div>

Hey, thanks for taking an interest.

Here’s a mediafire link to the work I’ve done so far, the latest attempt I was working with. It’s got extra stuff in there like custom tiles for the ChestHole32 tileset:

[http://www.mediafire.com/file/5zr41o3zhbu34um/Agent+Bandits.zip](http://www.mediafire.com/file/5zr41o3zhbu34um/Agent+Bandits.zip)

I’ll save you some potential time though and quote the entry for the Looter here, and the faction entry for it.

In gov\_bandits.json, the Looter NPC:

* * *

> **gov\_bandits.json**
>
> {  
> “type” : “MONSTER”,  
> “id” : “mon\_bandit\_looter”,  
> “name”: “Looter”,  
> “default\_faction”: “bandit\_loot”,  
> “symbol”:"@",  
> “color”:“pink”,  
> “size”:“MEDIUM”,  
> “material”:“flesh”,  
> “diff”:10,  
> “aggression”:20,  
> “morale”:20,  
> “speed”:110,  
> “melee\_skill”:4,  
> “melee\_dice”:1,  
> “melee\_dice\_sides”:7,  
> “melee\_cut”:2,  
> “dodge”:3,  
> “armor\_bash”:2,  
> “armor\_cut”:2,  
> “armor\_stab”:2,  
> “vision\_day”:50,  
> “vision\_night”:6,  
> “death\_drops”: {  
> “subtype”: “collection”,  
> “groups”: [  
> [“bandit\_looter”, 100]  
> ]  
> },  
> “upgrades”:{  
> “into”: “mon\_bandit\_scrapper”,  
> “half\_life”: 21  
> },  
> “hp”:75,  
> “death\_function”:[“NORMAL”],  
> “description”:“Covered in ragtag armor, the look in this one’s eyes denotes desperation, a common but dangerous feeling in this time.”,  
> “flags”:[“HUMAN”, “GOODHEARING”, “GROUP\_MORALE”, “GROUP\_BASH”, “ATTACKMON”, “SEES”, “HEARS”, “SMELLS”, “WARM”, “BASHES”, “HUMAN”, “LEATHER”, “FAT”, “BONES”, “GUILT”, “PUSH\_MON”],  
> “anger\_triggers”:[“HURT”, “PLAYER\_CLOSE”],  
> “fear\_triggers”:[“FRIEND\_DIED”],  
> “categories”:[“CLASSIC”]  
> },  
> {  
> “type” : “item\_group”,  
> “subtype”: “collection”,  
> “id”: “bandit\_looter”,  
> “entries”:  
> [  
> { “group”: “default\_zombie\_death\_drops”, “damage”: [0, 4] },  
> { “group”: “bandit\_looter\_drops”, “damage”: [0,4], “prob”: 80}  
> ]  
> },

* * *

And in monster\_factions.json their faction relationships with the other bandits in this mod, this was my latest attempt at making them behave:

* * *

> **monster\_factions.json**
>
> {  
> “type”: “MONSTER\_FACTION”,  
> “name”: “”,  
> “base\_faction”: “”,  
> “by\_mood”: [“”]  
> },  
> {  
> “type”: “MONSTER\_FACTION”,  
> “name”: “bandito”,  
> “friendly”: [“bandit\_loot”, “bandit\_gun”, “bandit\_raid”, “small\_animal”]  
> },  
> {  
> “type”: “MONSTER\_FACTION”,  
> “name”: “bandit\_loot”,  
> “base\_faction”: “bandito”,  
> “friendly”: [“bandit\_gun”, “bandit\_raid”]  
> },  
> {  
> “type”: “MONSTER\_FACTION”,  
> “name”: “bandit\_gun”,  
> “base\_faction”: “bandito”,  
> “friendly”: [“bandit\_loot”, “bandit\_raid”]  
> },  
> {  
> “type”: “MONSTER\_FACTION”,  
> “name”: “bandit\_raid”,  
> “base\_faction”: “bandito”,  
> “friendly”: [“bandit\_loot”, “bandit\_gun”]  
> },

* * *

And here’s how they spawn in, from bandit\_groups.json. This may have something to do with it? Here’s just one entry that I think makes them appear on the city streets:

* * *

> **bandit\_groups.json**
>
> },{  
> “type”:“monstergroup”,  
> “edit-mode”: “modify”,  
> “name” : “GROUP\_ZOMBIE”,  
> “default” : “mon\_zombie”,  
> “monsters” : [  
> { “monster” : “mon\_bandit\_glock”, “freq” : 9, “cost\_multiplier” : 5, “pack\_size” : [1,2] },  
> { “monster” : “mon\_bandit\_glock”, “freq” : 9, “cost\_multiplier” : 8, “pack\_size” : [2,3] },  
> { “monster” : “mon\_bandit\_shotgun”, “freq” : 7, “cost\_multiplier” : 9, “pack\_size” : [1,2] },  
> { “monster” : “mon\_bandit\_shotgun”, “freq” : 7, “cost\_multiplier” : 10, “pack\_size” : [2,2] },  
> { “monster” : “mon\_bandit\_glock”, “freq” : 8, “cost\_multiplier” : 9, “pack\_size” : [3,3] },  
> { “monster” : “mon\_bandit\_looter”, “freq” : 15, “cost\_multiplier” : 5, “pack\_size” : [1,2] },  
> { “monster” : “mon\_bandit\_looter”, “freq” : 15, “cost\_multiplier” : 5, “pack\_size” : [2,3] }  
> ]  
> },{

* * *

Initially they all belonged to the faction “bandit” and I added a monster faction with that name in a mod monster\_factions.json with nothing much added to it in order to troubleshoot it. I also took out the “PUSH\_MON” tag thinking they may be shoving each other out of the way, with no avail. It may even be my testing method. I’ve been building worlds and going into an empty field spawning groups of 3 with the debug menu and watching them. Setting them to friendly, etc. (They swarm around me and still hit each other)

They seem to get along well enough unless they see anything, then they go a bit wonky. They dont stand still fighting, just hit each other every now and then whilst milling around. But I started trying to figure this out when I seem them swiping at one another on the city streets when they spawned in like they should.

Thanks for any help.

[Previous page](https://discourse.cataclysmdda.org/t/add-bandits/11526.md?page=3)

[Next page](https://discourse.cataclysmdda.org/t/add-bandits/11526.md?page=5)
