View Full Version : Modding unit boni
spazzzman
28-06-2005, 03:18
I've been working on the bonuses.ini from the Units pak and I'm a little unsure about how it is applied. I want to give the roman infantry boni based on their reputation of discipline(training and formations).
1) Are the boni added to the values in the Units.txt or do they override/multiply the values?
2) If I add 2 entries that each include the same unit are the entries added/overridden?
3) How do I modify the stamina in the Units.txt? I know there is a STMNA column but I'm not sure if it goes by percentages or not.
4) Does 200% Exp cost mean it takes twice the exp to gain a star or half the exp?
5) What does MP cost refer to?
Example:
I added the "Roman" group, which includes only roman infantry, and the "Barbaric" group(referring to less disciplined troop types), which inlcudes militia, highlanders, vikings etc.
[Roman]
Barbaric = 150m
NoArmor = 50m
Bolt = -10r
RealArrow = -25r
militia appear in both the "NoArmor" and "Barbaric" groups. So would the bonus against militia be 200m or just 150m?
Angryminer
28-06-2005, 14:20
1. Bonuses.ini defines percentages. In your example the roman infatry's CTK will be the CTK defined in Units.txt * 1,50 against barbaric units.
2. If you write something like
Barbaric = 150m
Barbaric = 50m
the values are overwritten.
But in your militia-example the boni should be applied one after another (so both do their work).
5. This refer to multiplayer mode, when you buy your troops in the tower-mode.
6. The bonus "NoArmor = 50m" means that the roman infantry will loose 50% CTK against unarmored enemies.
The bonus "Bolt = -10r" means that the roman infantry's range (being zero, they aren't ranged at all) is multiplied by -10% (being -0,1) and remains zero.
I'd have to guess about 3 and 4, so I say nothing because I don't want to confuse anybody :wink: . I hope this helps you nevertheless.
Angryminer
spazzzman
03-07-2005, 11:19
Ok thanks.
1) Everything refers to CTK right? -10r subtracts 10% from CTK ranged (multiply by 0.90), correct?
2) Do "Roman = -25r" and "Roman = 75r" result in the same penalty (multiplied by 0.75 in each case)? If so, would you be able to use -50m as an equivalent to 50m?
So I have this now:
[Roman]
Barbaric = 150m
NoArmor = 175m
ARROW = 125m
MOUNTED = 90m (or could I use -10m ?)
[RealArrow]
Roman = -25r
2b) Roman would have bonuses to CTK against Barbaric, NoArmor and ARROW and a penalty against MOUNTED. RealArrow would have a penalty to their ranged CTK against Roman, correct?
I'm not sure about 4 but it seems that it indicates value of experience gained by other unit when killing Roman infantry unit.
so if Roman infantry has 200% when you kill one R.inf unit by any unit, that your unit gains 200%experience
Angryminer
03-07-2005, 12:26
Interesting thought Elvain. I will make a test with that. Though I think the bonuses refer to CTK and range, not experience.
But @spazzzman:
When you want the Romans group to have a 10% lower attack than usual against mounted units you'd write MOUNTED = 90m.
You'd also write
[RealArrow]
Roman = 75r
to lower the "RealArrow"-group's range against the Roman group by 25%.
When you write
[RealArrow]
Roman = -25r
you should recieve a negative range (the normal range * -0,25 = -normal range * 0,25). Either KoH can cope with that and end up with 1/4th of the normal range or it ignores the bonuses.ini-file for wrong syntax and reads the original-version from defs.pak.
Angryminer
Illuminatus!
03-07-2005, 17:27
Just to nitpick on a pet peeve, the English plural of "bonus" is "bonuses". In all the stuff I've read and heard (real life and gaming wise), I've never seen the word "boni" as anything but someone's nickname. I realize it *is* a Latin word, but this is the "English" forum.
Spazzzman is probably a German.. I realized that in German "boni" is plural of "bonus"
Important is that we understand each other :wink:
spazzzman
04-07-2005, 05:05
I noticed that in the original file, the Ballista entry has BUILDINGS = -100r and ARROW has Ram = -80r and ARROW has HeavyArmor = -75r. Does this refer to Range or CTK Ranged?
And my granparents were German but my parents and I were born in the US. I speak Spanish and know a little Latin, but "boni" just sounds better to me anyway.
vBulletin v3.5.4, Copyright ©2000-2007, Jelsoft Enterprises Ltd.