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
Umília 3 Jun, 2020 @ 10:04pm
[MODDING] A little help with CDB Types?
I'm trying to make a mod with custom database values and custom victory conditions. Until now I am able to create and edit the cdb.diff just fine trough Northgard Editor, and most of it seems to work well when testing.

What I want to do now is set up a specific condition to victory, in this case a specific builduing would have to be owned. Inside Northgard Editor, in Database > Custom Types, I am able to see the functions that I would like to use, in this case, VictoryCond{ HasBuilding buildingId : String );}. but so far I haven't figured it out exactly how to use it. Do I put it somewhere in script.hx? Can anyone help with this?

BTW, I wanted to congratulate the devs for opening the game for mods and custom maps, and even making the mod tool available for free. This is awesome and a huge step! Can't wait to get the hang of this thing and make a ton of mods this year.
< >
Showing 1-5 of 5 comments
土豆 4 Jun, 2020 @ 5:06am 
6666
Umília 4 Jun, 2020 @ 9:13am 
Great, thanks
Jakrus 4 Jun, 2020 @ 9:45am 
muda muda
Harmonium 11 Jun, 2020 @ 11:36am 
Originally posted by mistereme:
I'm trying to make a mod with custom database values and custom victory conditions. Until now I am able to create and edit the cdb.diff just fine trough Northgard Editor, and most of it seems to work well when testing.

What I want to do now is set up a specific condition to victory, in this case a specific builduing would have to be owned. Inside Northgard Editor, in Database > Custom Types, I am able to see the functions that I would like to use, in this case, VictoryCond{ HasBuilding buildingId : String );}. but so far I haven't figured it out exactly how to use it. Do I put it somewhere in script.hx? Can anyone help with this?

BTW, I wanted to congratulate the devs for opening the game for mods and custom maps, and even making the mod tool available for free. This is awesome and a huge step! Can't wait to get the hang of this thing and make a ton of mods this year.

How can you save what you modify in CDB ? When i change lot of thing, its just don't apply at all, i have now two CDB.
chad gamer 1 13 Jun, 2020 @ 9:06am 
Yes, you do it through the script.

state.removeVictory(VictoryKind.VFame);
state.removeVictory(VictoryKind.VLore);
state.removeVictory(VictoryKind.VMoney);
state.removeVictory(VictoryKind.VMilitary);
state.addVictory(VictoryKind.HasBuilding (BuildingName.String);
< >
Showing 1-5 of 5 comments
Per page: 1530 50