Page 1 of 1

What determines damage, and how to edit it?

Posted: Sat Aug 17, 2019 9:39 pm
by Achilles_Nikomedios
I noticed that elan/rank changes how the unit performs and how much damage it delivers, but if I wanted to, for example, decrease or increase missile units' damages, would I have to edit the elan of every single one? or is there a code that dictates how much all of the archers and skirmishers of any given rank will damage any unit?


For example, if I want to mod so that all missile attacks deliver less damage upon armored units, is that possible without having to edit every single missile unit so that it is generally weaker in all aspects?


thanks.

Re: What determines damage, and how to edit it?

Posted: Sun Aug 18, 2019 1:51 pm
by rbodleyscott
To change all shooting damage, it would be only be necessary to edit line 126 in Data/Battle/Scripts/Shooting_Logic.BSF.

To change the relative effect of armour against shooting, it would be necessary to make changes in the armour code for each shooting weapon type in the GetShootingWeaponModifier() function in /Data/scripts/CombatTools.BSF.

Note that you should not mod these (or any other) files in your main build, but should create custom "campaigns" (which is what the game calls user created folders), in which to place the modded version of the scripts.

See: http://archonwiki.slitherine.com/index.php/Modding

Re: What determines damage, and how to edit it?

Posted: Mon Aug 19, 2019 4:52 pm
by Achilles_Nikomedios
thank you my good boi