tModLoader

tModLoader

623 ratings
NPC Warfare
6
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.4
File Size
Posted
Updated
150.357 KB
9 Apr, 2024 @ 12:20am
9 Feb @ 3:29pm
18 Change Notes ( view )

Subscribe to download
NPC Warfare

Description


NPC Warfare

Workshop page last updated for: 1.3.0.1 (Note: By 1.3 we mean Mod Version 1.3, unrelated to Terraria version)

Description:
NPC Warfare allows NPCs to hit opposing NPCs of different "factions" with both melee and projectile shots, dividing most NPCs into various groups based on their in-game alliances and alliances based upon lore and bestiary entries.
For the NPCs that don't fall into any category, their only alliance is solely with those of the same type, and for those that fall into multiple categories, it's self-explanatory.
There is even built-in full compatibility with Consolaria and Qwerty's Bosses and Items, two mods that I personally like and aren't too large or frequently updated.

As for other mods like Calamity, Thorium, Retribution, and literally every other one that adds NPCs, the mod will make all their NPCs (except for detected worms) have no alliance with other NPCs and only be aligned with their own type. I'll look into supporting Mod NPCs for custom factions, but as of right now that is not supported.

What the mod doesn't do: It doesn't change how NPC ai works, so NPCs will not go out of their
way to target other NPCs. I may work on that in the future, but I'm not sure if that fits into my vision for this mod
and there are other things I need to work on first before taking on such a (maybe) big challenge.

If you have any recommendations for mods to add support for or factions to add, just ask in the comments and I'll check it out :)

Config:
To use the config first go to the Main Menu, then Workshop, Manage Mods, and click the gear next to the mod name.
Disabled: The NPCs within the group will not give or recieve damage to any other NPCs, acting as if vanilla.
Default: The NPCs within the group will not hurt other inside their group, but will hurt those in other groups they are not a part of.
Rogue: The group is effectively disbanded, meaning NPCs will damage others inside their group (assuming the NPCs in question don't share other groups)


Custom Factions:
Go to the config, same steps as before, and scroll down to the bottom. There you can add the NPC IDs of the NPCs you want to Custom Faction 1, 2, 3, 4, 5.
https://terraria.wiki.gg/wiki/NPC_IDs is the best source of NPC IDs currently available, I highly recommend using that.
----

Tips:
This mod is best played on challenge runs and/or runs with boosted spawns, as the mod makes gameplay easier, and its simply just so much more fun when there's more NPCs running into each other. Only turn up spawns if your PC can handle it, though.
You may want to Disable Mod Bosses as they tend to have the most issues out of everything, but only with bosses like Calamity Ravager that have multiple parts. This is only if you really care about having your boss fights stay pure because they still usually work fine.
If you have performance issues, turning on extra factions or disabling combat for factions that often are running into each other, like with Night creatures, may increase performance.
----

Factions:
- Zombies
- Skeletons
- Slimes
- Demon Eyes (includes Wandering Eye, Servants of Cthulhu, etc)
- Jellyfish
- Mummies
- Antlions
- Mimics
- Wall of Flesh (WOF, Voodoo Demon, Leeches, Hungry)
- Spectres (Wraiths, Possessed Armor, Ghosts, etc)
- Hornets
- Lihzards & Golem
- Demons
- Blood Creatures (Drippler, Blood Zombie, Dreadnautilus, etc)
- Martians
- Frost Legion
- Pumpkin Moon
- Frost Moon
- Solar Eclipse
- Goblin Army
- Pirates
- Old One's Army
- Stardust
- Vortex
- Solar
- Nebula
- Dungeon Inhabitants
- Mushroom (anything that is glowing mushroom or is infected by glowing mushroom)
- Hallowed
- Corrupt/Crimson (I don't remember the reasoning for combining these, may split in a future update)
- And the largest by far, Evil (This includes the Cthulhu Parts, Mechs, and Cultists, as since they all serve as tools of Cthulhu it makes sense they would all be allied)

Rogue Factions by Default: (or in other terms the faction is not teamed by default)
- Desert
- Snow
- Jungle
- Night (Zombies, Demon Eyes, some Spectres, Werewolves, etc)
- Beast (Antlions, Basilisk, Wolfs, Werewolves, Giant Scorpions)
- Bosses
- Mod Enemies

DISABLED by Default: (Or in other words the NPCs in this faction will not do ANY NPC against NPC combat)
- Mod Bosses

If Consolaria, Qwertys, and/or Creaturia are installed:
- Inclusions into factions listed above (Like with Creaturia's Fish Beasts and Great Pixie)
- Dino Invasion
- Wyverns
- Lepus
- Sky Fortress

----

Warning/Notes:
Performance goes down when a significant number of NPCs are on the screen, but this is usually only when events are happening with a lot of mods. The mod is also incompatible with many modded worms, although any detected by the mod should work normal.
Should be (mostly) compatible with content mods, excluding worms and segmented NPCs. If you try to fight Devourer of Gods from Calamity have fun lmao. HOWEVER, this can be fixed by setting Mod Enemies and Mod Bosses to "Disabled".

----

Future Plans:
- More config options, such as joining factions with a toggle for each
- More projectile support as long as performance is not impacted
- More mod support

----
While working on this I eventually realized I'd have to choose what kind of mod I want to make;
either a chaotic, very unbalanced one that's more a joke mod than anything, where all NPCs are
on their own, or what I have now, something much more finely tuned to be actually playable
and more focused in scope. So instead of just scrapping that other idea I made it its own mod,
NPC Battle Royale.



Mod made by Conq_, Icon made by Ripple, in-game Chinese translation by Fox Radish, in-game Russian translation by Dev_URNA
Originally posted by tModLoader NpcWarfare:
Developed By Conq
Popular Discussions View All (1)
2
14 Jun, 2024 @ 2:24pm
Common Presets/Ways to Play
Conq_
131 Comments
PLMMJ 3 Nov, 2024 @ 8:44pm 
I might run it after I complete this Fargo's run. No promises tho
Conq_  [author] 3 Nov, 2024 @ 8:33pm 
@PLMMJ that sounds like a good challenge run concept, lol. I imagine there'd be a huge focus on regeneration and movement items, since it'd basically force every boss fight to be either multiple bosses at once or a boss during an invasion.
PLMMJ 3 Nov, 2024 @ 8:04pm 
Wonder how hard it would be to beat Terraria with this mod serving as your only offense (for sake of sanity and also defeating bosses like Golem, all set to rogue)
Conq_  [author] 3 Nov, 2024 @ 4:41pm 
@Goholtramor Are you sure you set "Mod Bosses" to Rogue? I just tested it myself and it works fine for me. Keep in mind the mod doesn't change AI, just changes what enemies can or can't be hit by attacks from other enemies.
Goholtramor 3 Nov, 2024 @ 4:12am 
is it just me or is it not working on bosses? I'm trying to get bosses to kill each other, but trying every option in the config didn't help.
PLMMJ 12 Sep, 2024 @ 3:14am 
When I saw NPC warfare, I thought town NPCs
PELMESHKA96 28 Jul, 2024 @ 8:33am 
какая же это имба хорошо что наткнулся на геймплей влияет не сильно но фармить или строить арены гораздо легче
goferguy45356 20 Jul, 2024 @ 9:58am 
███████ ]▄▄▄▄▄▄▄▄ - - - FIGHT AGAINST BOB, DOGE, WILLIAM AND TOBY! AND SAVE STEAM!
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
TheSilentAngryCat 15 Jul, 2024 @ 7:55pm 
xd
刘畅-x64 15 Jul, 2024 @ 3:26am 
THE NPCS ARE FIGHITNG BRUHH