Northgard

Northgard

Your Battlefied, Your Rules
Unique and vibrant user made battlefields, all new tiles, customization win conditions, endless possibilities. The world is in your hands with the Northgard Map Editor!
Learn More
Answering your Modding and Scripting Questions!
Hey everyone, I'm the creator of Village Defense Tycoon, Four Lore Battlegrounds, and Auto Drakkar - Wrath of the Sea King.

I wanted to open up a discussion about any questions you had regarding modding, scripting, the database, documentation, etc.

I've used the map editor extensively and know most of what's possible right now, so I'm here to help anyone get started! Ask away!
Last edited by Rocket Popsicle; 21 Aug, 2020 @ 10:39am
< >
Showing 1-15 of 51 comments
Tony Tony 20 Sep, 2020 @ 4:24am 
How to change the victory kind in the mod if i want particular one like commercial victory only?
Rocket Popsicle 7 20 Sep, 2020 @ 9:44am 
function setVictory( ) {

state.removeVictory(VictoryKind.VMilitary);
state.removeVictory(VictoryKind.VFame);
state.removeVictory(VictoryKind.VLore);
}

You must then "call" setVictory( ); under the firstLaunch( ) function built into the default script.
Kjelle 1 14 Oct, 2020 @ 10:07am 
Maybe not the right thread but... lets begin with the easiest one: How do I change the main picture of my workshop map for example? I was doing a small research but I wasnt able to find anything... Thank you Mister Popsicle ahead.
Last edited by Kjelle; 14 Oct, 2020 @ 10:08am
Rocket Popsicle 7 14 Oct, 2020 @ 1:38pm 
All you need to do is drop a JPG file into your mod folder and name the picture "preview"
ISK64 1 23 Oct, 2020 @ 2:47pm 
Hi, I'm currently having problems with having a free clan selection when starting the custom maps. I couldn't find a solution via script. Did you find a way to do that?
Rocket Popsicle 7 24 Oct, 2020 @ 5:28pm 
Unfortunately there is no way to select your clan. The clans placed through the editor are locked in.
Gratch 20 Nov, 2020 @ 3:25am 
I would like to have a map, but I have .... no ideas as of where to start.
victory conditions being to conquer the big tree. while having a lot of kobolds, and bandits about everywhere, spreading like roaches.
so ..... would you know how to make the kobolds much more aggressive? just like in the conquest mode
If you have that, I would be delighted.
thanks in advance.
Rocket Popsicle 7 20 Nov, 2020 @ 8:04am 
Hey Gratch, those are two very easy things to accomplish, but they must be done through scripting.

When you create the Map for your mod, a mod folder with the same name will be created in steamapps > common > Northgard > Mods. You'll need to drag and drop the "script.hx" file into this folder, and open the Northgard Editor to edit the script. Most of this information can be found in the "How to Mod" section of the game.

Within your script, you'll need to write two short "functions" under the section labelled "function onFirstLaunch()"

First to remove the victory conditions but leave Yggdrasil:

state.removeVictory(VictoryKind.VLore);
state.removeVictory(VictoryKind.VMoney);
state.removeVictory(VictoryKind.VOdonSword);
state.removeVictory(VictoryKind.VFame);
state.removeVictory(VictoryKind.VHelheim);

For the rule, you'll do the same thing but with:

addRule(Rule.ManyKobolds);
Gratch 20 Nov, 2020 @ 2:26pm 
thanks a lot .... I do remember that ive read tthe "how to mod" .... when it was launched .... I .... completely forgot about it since then ....
I know now what to read this weekend :)
also , do you know if there is a way to see the stats at the end of the game ?
Rocket Popsicle 7 20 Nov, 2020 @ 7:57pm 
Not for mods unfortunately, hopefully something that can be implemented by the developers in the future!
Gratch 26 Nov, 2020 @ 11:19am 
Again, thanks.
I .... enjoyed the many kbolds rules, it was fun, but not enough.
even with a supreme difficulty, once you have a grasp of a good base, it become way too easy ...
so here is my question or request if you know how to do it :
Is there a way to make the jotnars or the bandits act like the kobolds ? I mean spreads and attack once in a while if you are next to them .
imagine it : jotnars ... spreading like roaches, and mass murdering the players like cabbage.
one word to describe that : awesome.
I am looking at you as santa right now : a huge hope, even if it most likely is not possible.
still thanks for a future answer (even if it's a loooong answer: nope)
KingofDarkness 18 Dec, 2020 @ 8:24am 
Do you happen to know where I can find a dump of all the enum values that the docs say "can be found in the database"? I am on linux so I do not think the typical tooling works on my platform.
MindYaBusiness 2 Jan, 2021 @ 3:12am 
how do i script an attack every 2 years
Cryerborg 2 2 Jan, 2021 @ 10:41am 
I would like to set the clans to predetermined ones in the editor. All that gets put in when I add a clan is Wolf. I'd like to add Goat and Bear, but I can't seem to find any reference materials for the editor since Northgard.net doesn't connect.

Rocket Popsicle 7 2 Jan, 2021 @ 10:53am 
You have to click on the Town Hall in the map editor and select the clan.
< >
Showing 1-15 of 51 comments
Per page: 1530 50