I think I'm not really conveying myself well, so here's what I tried:
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)
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.
UpgradeType = Modifier,
TargetType = Ship,
TargetName = "Hgn_DefIonTurret",
UpgradeName = "mass",
UpgradeValue = 1.3,
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.