Page 1 of 1

Question on adding Shock Values to Infantry

Posted: Thu Aug 21, 2014 11:42 am
by toddtreadway
I am thinking about modding the game to take out most of the support units, and instead make the technologies change and improve the capabilities of the basic units (infantry in most cases).

So, for example, I'd like to take out the artillery unit and add in a shock value to infantry units. As the artillery technology improves, the shock value improves, etc.


In the .lua files, I changed the infantry shock value to a 1, and for some reason it still shows up as 0 (no matter what number I put in there). The other numbers change, so I know I am using the correct .lua file.

And if I change the shock value of, say cavalry or artillery, that changes correctly.


Any ideas?

RE: Question on adding Shock Values to Infantry

Posted: Thu Aug 21, 2014 11:53 am
by Hellfirejet
ORIGINAL: toddtreadway

I am thinking about modding the game to take out most of the support units, and instead make the technologies change and improve the capabilities of the basic units (infantry in most cases).

So, for example, I'd like to take out the artillery unit and add in a shock value to infantry units. As the artillery technology improves, the shock value improves, etc.


In the .lua files, I changed the infantry shock value to a 1, and for some reason it still shows up as 0 (no matter what number I put in there). The other numbers change, so I know I am using the correct .lua file.

And if I change the shock value of, say cavalry or artillery, that changes correctly.


Any ideas?

Hi,

If you use this for your Infantry,the shock effect should work in game for you.

{
id = 1,
name = "infantry",
type = "land",
chassis = "foot",
class = "ground",
icon = "infantry",
--colonial = true,
levels =
{
{
hp = 100,
mp = 6,
ap = 1,
LOS = 1,
range = 1,
shock = 1,
attack = 10,
defense = 12,
airattack = 3,
airdefense = 4,
bombard = 0,
assault = 2,
ammunition = 0,
}
},
--retreat = 0,
costPP = 20,
costMP = 12,
turns = 4,
upkeepPP = 4,
upkeepMP = 0,
weapon = "light",
factions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22 },
strengthValue = 12,

stats =
{
groundattack = 10,
airattack = 3,
airdefense = 4,
armourattack = 0,
basedefense = 12,
highdefense = 13,
assault = 2,
shock = 1,
},
},


Image

RE: Question on adding Shock Values to Infantry

Posted: Thu Aug 21, 2014 11:37 pm
by toddtreadway
Thanks Kirk!