adding a civ trait to a unit

wildfire_desu

Chieftain
Joined
Mar 12, 2019
Messages
5
so i wanted to make marines not useless by giving them the Danish trait, but i don't know if that's even possible. i tried to make it work but failed
can anyone help?
 
The pillage ability is a promotion, so you could add that. The +1 movement when embarked and flat cost to land is tied to the trait, so can't be given to just one unit type. You'd need a modded DLL to add the trait ability as a promotion ability, then it could be done. Don't know of any modded DLL that does this, mine doesn't. (But it wouldn't be hard to add if you know C++)

PS: This question is in the wrong forum - I've asked for it to be moved
 
thanks
i am pretty bad with C++, so it would be great if somebody could at least link me a tutorial... i don't really think anyone would help me with coding for free
now that i think of it, some techs also give more embarked movement, could that be used?
 
Last edited:
DLL modding links are in my sig. Techs granting more embarked move are the same issue, you can give a tech to a player (actually a team), but not to a unit
 
so as i understand, the simple way for me should be to copy the code that makes the danish trait work, place it to where the promotions are located to make it a promotion, and then i'll be able to assign them to marines via an XML?
 
Very much depends on your definition of "simple", but fundamentally, yes.
 
can you provide any help other than the tutorials you've already published? looking through the entire code is such a pain, i presume you already know it pretty well yourself
 
Back
Top Bottom