As in the thread title, is this possible? I'm guessing, as I'm not that experienced with modding not to mention coding, that this would require some lua coding. I can change the existing defense value for the features, eg. forest, but that's not what I had in mind.
Initially I've created a new SQL following Afforess' simple yet elegant tutorial. If I only want to replace some values I go for this, eg.:
UPDATE Features SET 'Defense' = 33 WHERE Type = 'FEATURE_FOREST';
and it works.
But to add something like attack bonus to forest I would need:
ALTER TABLE Features
ADD AttackMod integer;
UPDATE Features SET 'AttackMod' = 33 WHERE Type = 'FEATURE_FOREST';
and lua code to get it working.
Am I right on this one so far or is there something wrong with the above?
Where to start with this lua code (or how to start?)? Any examples I can look at?
Initially I've created a new SQL following Afforess' simple yet elegant tutorial. If I only want to replace some values I go for this, eg.:
UPDATE Features SET 'Defense' = 33 WHERE Type = 'FEATURE_FOREST';
and it works.
But to add something like attack bonus to forest I would need:
ALTER TABLE Features
ADD AttackMod integer;
UPDATE Features SET 'AttackMod' = 33 WHERE Type = 'FEATURE_FOREST';
and lua code to get it working.
Am I right on this one so far or is there something wrong with the above?
Where to start with this lua code (or how to start?)? Any examples I can look at?