How to edit weapon

Post Reply
wzfcns
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 35
Joined: Wed Dec 21, 2016 5:47 pm

How to edit weapon

Post by wzfcns » Sat Dec 29, 2018 8:58 am

How to edit weapon?like change the power of bow.
Is there any guide talk about it?

Femto
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Mon Dec 31, 2018 7:59 am

Re: How to edit weapon

Post by Femto » Mon Dec 31, 2018 8:21 am

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
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 35
Joined: Wed Dec 21, 2016 5:47 pm

Re: How to edit weapon

Post by wzfcns » Wed Jan 16, 2019 8:11 am

thanks a lot!
Is that any way to add new weapon?

rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 21831
Joined: Sun Dec 04, 2005 6:25 pm

Re: How to edit weapon

Post by rbodleyscott » 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.
Richard Bodley Scott

Image

wzfcns
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 35
Joined: Wed Dec 21, 2016 5:47 pm

Re: How to edit weapon

Post by wzfcns » Tue Jan 22, 2019 2:45 pm

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!

Post Reply

Return to “Field of Glory II: Modding”