Question on adding Shock Values to Infantry

Post new mods and scenarios here.

Moderator: MOD_Commander_The_Great_War

Post Reply
toddtreadway
Posts: 480
Joined: Mon Sep 29, 2003 9:30 pm

Question on adding Shock Values to Infantry

Post 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?
User avatar
kirk23
Posts: 3033
Joined: Fri Oct 15, 2010 1:19 pm
Location: Fife Scotland
Contact:

RE: Question on adding Shock Values to Infantry

Post by kirk23 »

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
Attachments
Infantry w..in game..jpg
Infantry w..in game..jpg (62.66 KiB) Viewed 248 times
Make it so!
toddtreadway
Posts: 480
Joined: Mon Sep 29, 2003 9:30 pm

RE: Question on adding Shock Values to Infantry

Post by toddtreadway »

Thanks Kirk!
Post Reply

Return to “Mods and Scenarios”