How to edit weapon

Post Reply
wzfcns
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 302
Joined: Wed Dec 21, 2016 5:47 pm

How to edit weapon

Post by wzfcns »

How to edit weapon?like change the power of bow.
Is there any guide talk about it?
Working on the Silk Road mod for FOG2 and FOG2:Medieval.
Image
Femto
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 25
Joined: Mon Dec 31, 2018 7:59 am

Re: How to edit weapon

Post by Femto »

You need to tweak "Field of Glory II\Data\scripts\CombatTools.BSF" to edit weapon effectiveness. The bsf file can be edited by using Notepad++.
But before modding, it is recommended that you read basic modding guide provided by Slitherine below, especially "1.1 The Basics" and "1.2 Creating a Mod".

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

Now the part about bow is between line 2111 and 2334 of the file. Specifically line 2172 and 2176 set the POA.
Sorry for my poor English. Hope this helps.
wzfcns
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 302
Joined: Wed Dec 21, 2016 5:47 pm

Re: How to edit weapon

Post by wzfcns »

thanks a lot!
Is that any way to add new weapon?
Working on the Silk Road mod for FOG2 and FOG2:Medieval.
Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28053
Joined: Sun Dec 04, 2005 6:25 pm

Re: How to edit weapon

Post by rbodleyscott »

wzfcns wrote: Wed Jan 16, 2019 8:11 am thanks a lot!
Is that any way to add new weapon?
Yes you could add a new weapon, but you would have to:

1) Add a new column to the Squads file.
2) Script the effects of the weapon in various places - depending on whether it is a close combat or a shooting weapon.
3) Add the necessary strings to display it in the UI.
Richard Bodley Scott

Image
wzfcns
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 302
Joined: Wed Dec 21, 2016 5:47 pm

Re: How to edit weapon

Post by wzfcns »

rbodleyscott wrote: Wed Jan 16, 2019 8:19 am
wzfcns wrote: Wed Jan 16, 2019 8:11 am thanks a lot!
Is that any way to add new weapon?
Yes you could add a new weapon, but you would have to:

1) Add a new column to the Squads file.
2) Script the effects of the weapon in various places - depending on whether it is a close combat or a shooting weapon.
3) Add the necessary strings to display it in the UI.
Thanks a lot!
Working on the Silk Road mod for FOG2 and FOG2:Medieval.
Image
Post Reply

Return to “Field of Glory II: Modding”