If you can lend a hand once more, Uveso:
How would one go about changing specific unit stats? Let's say I wanted, for example, Yolo to have 10k more hp.
What's missing from this code?
- Code: Select all
function OnStart(self)
LOG("----- Survival MOD: Initializing game start sequence...");
ForkThread(Survival_Tick);
EditBlueprints(self)
end
function EditBlueprints(self)
for UnitID, UnitBlueprint in __blueprints do
if (UnitID == 'XSB2401') then -- Yolona
XSB2401_unit.bp.Defense.Health = 22000; -- tried with UnitBlueprint.Defense.Health etc, nope
XSB2401_unit.bp.Defense.MaxHealth = 22000;
end
end
end
I bet it's something very simple, tried to figure it out by myself from your vision-by-tech-level example, but am not knowlegeable enough to do it
Much obliged!!!!!
Check out my 2 maps: "Survival_Mayhem&BO_3d_v1" "Survival_Mayhem&BO_3d_RPG"
as well as my mod: "Survival Mayhem&BO balance"
-- let me know of any bugs or issues regarding those 3.