I think I'm not really conveying myself well, so here's what I tried:
Code:
[hgn_defionturret.ship]
...
NewShipType.mass = 20
...
addAbility(NewShipType, "DefenseFieldAbility", 1, 0, NewShipType.mass, 2400, 1200, 1, 0.6, 0, "defensefield_sphere_spray")
addAbility(NewShipType, "DefenseFieldShieldAbility", 0, NewShipType.mass, 0, 0)
...
[/hgn_defionturret.ship]
Code:
[research.lua]
...
UpgradeType = Modifier,
TargetType = Ship,
TargetName = "Hgn_DefIonTurret",
UpgradeName = "mass",
UpgradeValue = 1.3,
...
[/research.lua]
is what I'm trying to do. It won't even do this. Even though mass is equal to 20, the radius of defense field is nonexistent (Probably 0) before I even upgrade. I think what you're trying to tell me is that there is no way to make references in the LUA scripts in such a way that'll make the HW2 interpreter work with them.
The only reason I can't see creating a new variable NewShipType.MaxRadius in the .ship file wouldn't work is because it isn't being read in by the interpreter, as there isn't a maxradius variable in the template...Hopefully if that is the case, I can find the template in the Big file somewhere and modify that.