Hegemony III: Clash of the Ancients

Hegemony III: Clash of the Ancients

View Stats:
KnochenKalle Sep 28, 2024 @ 11:10am
Modding Chargestrength to Generals
Hey there, i was hoping someone could help me with this.

Im simply playing the Messappi in Unification of Italy with a lot of small mods. The game realy has become something thanks to Canute VII.
Whenever i get a new general i sometimes change some of the skills to my better, since they are almost always rng, with this line in the console:

getselected():setattribute("skill", 0.raise, mult)

skill and raise:
missilerange 10
missiledamage 30
meleedamage 25
siegedamage 65
chargestrength 30
chargeblock 40
hitpoints 30
xp 50
maxmorale 25
recruitment 15
populationgrowth 15
recruitxp 250
skillresearch 20
viewdistance 100
factionmorale 15
taxoutput 15
supplyconsumption 20
cost 50

Now, all other skills, that i use, work fine with adding and taking, except chargestrength. Its just adding a number instead of %.
This is all the modding i know, so its a complete mystery to me.

Hope someone can help, probably Canute since hes doing 90% of all mods here, but i didnt want to bother him personaly like a jukebox...

Thanks for reading and regards.
< >
Showing 1-2 of 2 comments
Canute VII Sep 28, 2024 @ 11:24am 
Hey, in this particular case it seems you need to put the mult in parentheses e.g. write getselected():setattribute("chargestrenght", 0.5, "mult"). Generally, that's the recommended way to do it anyway.

PS: If you want to add a particular effect, then use add instead of mult, e.g. getselected():setattribute("chargestrenght", 10, "add").

PS2: thanks for the praise, seems you are enjoying my work; but: "90% of all mods" - maybe one can get that impression, just don't you confuse quantity with quality ;-)
Fristi61 Sep 29, 2024 @ 6:11am 
FYI you can customize your starting general's bonuses in the faction selection menu.
After selecting a faction, click 'edit' in the general's section in the left-hand panel and you can reallocate attributes manually.
So they don't have to be rng.

But, yeah, if you want a more powerful general than normal and there's no historical generals to choose then you'll need to use console commands, as Canute already described :-)
< >
Showing 1-2 of 2 comments
Per page: 1530 50