Northgard

Northgard

72 ratings
Enhanced AI
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Map, Script
File Size
Posted
Updated
45.734 MB
28 Feb @ 2:05pm
22 May @ 8:27am
20 Change Notes ( view )

Subscribe to download
Enhanced AI

Description
This is a functioning enhanced AI. You can choose between 6 difficulty levels, and depending on the difficulty level, different AI behaviors are enhanced.

For this, I've adjusted several behaviors:

- Faster expansion
- More aggressive gameplay
- Better resource management

Some AI fixes:
- Units no longer get stuck for years on a single tile.
- No starving in winter.
- No senseless attacking of neutral factions.

Everything is still a work in progress, so if you test the AI, I'm always open to feedback. The AI works on any map. Therefore, you can create a map in the editor or download one from the workshop and then copy my script.hx into the mod folder. The mod itself now includes a 2vs4 map, where you can team up in co-op mode against four AIs

If you want to change clans, follow this guide:
Start Northgard - Goto Creative - Edit Map - Select "Enhanced AI"
Select a main tile
Choose the clan at the bottom window
Escape
Save map
Overwrite (!) the map (if you save the map under a new name, the scripts will be missing)

Last map change: 22.05.2024
Map: 2vs4
22 Comments
[NewNet]*Akiyama  [author] 11 Jul @ 1:15pm 
Of course:
Singleplayer - Custom Game
or Multiplayer - Custom Lobby
In game settings: Add Mod - Choose "Enhanced AI"
If you want to play another clans, look at mod description
If you want to play your own (or any other moded map) look at mod description
You can´t use my AI with random maps or in conquests (no way, Northgard doesn´t support that)
Hermits 11 Jul @ 10:07am 
can you tell me how do we use this ?
Lasariko 23 Jun @ 3:51am 
Im new to northgard modding scene, how do we use this exactly?
Mamuro 17 Jun @ 11:03am 
I LOVE YOU AUTHOR


Please do not abandon this mod, I will name my son yours
[NewNet]*Akiyama  [author] 28 May @ 4:14am 
@yanezz: For questions like these, the modding community on Discord is the best place to get help. I think that will be difficult. You can only check where the units are, but not where they are going. And if they have arrived on the field with neutral faction, they have already started the battle. Additionally, you will quickly run into issues with the 0.5 seconds per code execution not being sufficient if you query all units from all players, and the game will crash. That's why I have given the AI a default relationship of 30% with all neutral factions. This way, they no longer engage in hopeless wars against Yotuhn and others.
yanezz 26 May @ 9:49am 
By the way, I am coder too. About neutral factions - could AI bot check certain units type in certain tile, for instance for Yotuhn, and DONT invade there if match?
[NewNet]*Akiyama  [author] 22 May @ 8:45am 
Thanks yanezz. I'm glad you like it. With the last update I've simplified the mod to the point where the script can be applied to any number of AIs without crashing. Unfortunately, this has made it a bit less "human-like." However, I will try to write a code that makes all the previous improvements possible for multiple AI-controlled players. But Shiro doesn't make it easy for us mod creators :D
yanezz 22 May @ 5:20am 
Awesome mod! So refreshing experience now. Human-like Ai. Author hope you come back soon :)
[NewNet]*Akiyama  [author] 3 May @ 2:26am 
@Mijj I unfortunately didn't have internet access for much longer than expected. I'll get to that soon.
[NewNet]*Akiyama  [author] 3 May @ 2:25am 
@Tonne
Because Shiro doesn't provide this option. I can only upload a mod with a finished map via the workshop. You can take my script.hx from my mod folder and put it in the folder of any of your own or downloaded maps, and the AI will be improved. Shiro doesn't offer us any other options.