Hello swaaye,
there is no way to change the cheat multipliers from the console.
That's not how it works.
If you set a cheat multiplier, then every unit gets a cheat buff on unit creation. (Unit.lua -> OnCreate)
If you want to change the cheat multiplier while playing, you need to loop over every unit, remove the old cheat buff and apply a new buff with your new cheat multipliers.
This can only be done with a (sim) mod.
If you want to make this with a mod (in case you are a LUA coder) your script should do:
1. loop over every unit and remove the cheat buff
- Code: Select all
Buff.lua.RemoveBuff(unit, 'CheatIncome', true)
Buff.lua.RemoveBuff(unit, 'CheatBuildRate', true)
2. Set a new cheat factor for eco and buildspeed.
- Code: Select all
ScenarioInfo.Options.BuildMult = 2.0
ScenarioInfo.Options.CheatMult = 2.0
3. Call the function SetupCheat to set the new values
- Code: Select all
aiutilities.lua.SetupCheat(aiBrain, true)
4. loop over every unit and add the new cheat buff
- Code: Select all
Buff.lua.ApplyBuff(unit, 'CheatIncome')
Buff.lua.ApplyBuff(unit, 'CheatBuildRate')
Done.