What determines damage, and how to edit it?

Field of Glory II is a turn-based tactical game set during the Rise of Rome from 280 BC to 25 BC.
Post Reply
Achilles_Nikomedios
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sat Aug 17, 2019 9:24 pm

What determines damage, and how to edit it?

Post 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.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28409
Joined: Sun Dec 04, 2005 6:25 pm

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

Post 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
Richard Bodley Scott

Image
Achilles_Nikomedios
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sat Aug 17, 2019 9:24 pm

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

Post by Achilles_Nikomedios »

thank you my good boi
Post Reply

Return to “Field of Glory II”