villev
Posts: 16
Joined: 7/4/2012 Status: offline
|
quote:
ORIGINAL: operating quote:
ORIGINAL: kirk23 quote:
ORIGINAL: battlevonwar Not sure, I have had Commanders with almost every nation so far, except Minors. Plus I rarely see much of an impact on the battlefield with them anyway..not sure what you get for them...sometimes they have negative impacts by their details? After spending the last 3 hours fixing errors, that come with the games commanders script, I now know the main reason why, you don't see any impact off having a General attached! The truth is, most of the scripts associated with the different commanders, that come with the game, don't have their individual stats activated, meaning that the Attack / Defence factors, that should be boosted by having a General attached, are not calculated during combat, so in effect your right the commanders do diddly squat. That is the bad news, the good news is this has now been rectified, because I have went through each and every commander in turn, and activated their stats, so now they do assist the unit they are attached too. Have seen where the nearby units of a commander show stat changes beyond their normal stats. You mean to tell me: All this time This was not actually true! I hope what you have discovered, is corrected in the upcoming 1.40 patch... I'd be curious to know why do you think the factors are not calculated? They seem to be: (game_combat.lua, line 299 on) -- Attack & Defense --
----------------------
local aAttack = 0
local aDefense = 0
local dAttack = 0
local dDefense = 0
local aCommander = GetNearbyCommander(attacker)
local dCommander = GetNearbyCommander(defender)
local defenseType
if attacker.prototype.lua.type == defenderPrototype.type and attacker.prototype.lua.class ~= "artillery" then
aDefense = GetStat(attacker, "basedefense") + GetCommanderBonus(aCommander, "basedefense")
dDefense = GetStat(defender, "basedefense", defenderPrototype) + GetCommanderBonus(dCommander, "basedefense")
defenseType = "base"
else
aDefense = GetStat(attacker, "highdefense") + GetCommanderBonus(aCommander, "highdefense")
dDefense = GetStat(defender, "highdefense", defenderPrototype) + GetCommanderBonus(dCommander, "highdefense")
defenseType = "high"
end ... it's similar for the rest of the stats.
|