Need some help with modding

#1

Sooo,
Lately i have been working on my own castle in VCMI. I’ve done graphics and when i was heading to programming, i realized that i forgot to do tavern and blacksmith :sweat_smile:. So i thought that i will use my 2 horde buildings for it, but i also realized that i need these buildings to buff my creatures. So there’s go a question: Can i assign horde’s buildings function to a tavern, or a blacksmith (or to other buildings), but that they won’t lose their function?

#2

Rather not. Horde buildings have hardcoded “id” and those ids tell the same that building works as ‘horde’. Tavern and blacksmith have their own hardcoded ids.
One more thing - special buildings are not working in vcmi yet :frowning:

#3

But, could I make that e.g. blacksmith (or, e.g. upgraded dwelling) increases population of unit? It doesn’t need to be identified by horde. It is possible to make that some buildings make me e.g. gold each day, so i thought that this would be possible :frowning:

#4

Nooo, customizing hardcoded building is almost impossible (except giving resource) - definitelly it’s better to add tavern/blacmisth graphics to the townscreen.

#5

Ohhhhh, i am too lazy to do thatttt, but thanks anyway :slight_smile:.

#6

I’m curious about your castle, could you show us?

#7

Of cause you can. You can make horde with empty animation and area, border, and make it requare tavern or blacksmith, and add “auto”:true to it in building section. When you buy tavern or blacksmith, it will be built automatically and will work as invisible horde.

1 Like
#8

OMG, i didn’t thought about that. Thank you very match!
And i can send here some screenshots :slight_smile:

#9


It’s not so good, but i will be changing a lot of things, like marketplace and library, and some of background.

2 Likes