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
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.