Author Topic: Set Difficulty Multipliers  (Read 502 times)

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Set Difficulty Multipliers
« on: February 28, 2017, 01:28:02 PM »
Does anyone know how to get this particular line of code to work in SP mission scripts?

Code: [Select]
#set the diffucultly level - easy Offense, Defense, med O, D, Hard O, D
App.Game_SetDifficultyMultipliers(1.2, 1.1, 1.0, 1.0, 0.9, 0.9)

It appears in the vanilla scripts for SOME of the games missions, but not all. I've tried adding the lines to other missions and i get no errors, but tinkering with the values doesn't appear to make any difference to incoming or outgoing damage whatsoever.

The creators of the SP Mod might best know the answer, but if anyone knows what's up with this function and how to get it to work I would appreciate it.

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Set Difficulty Multipliers
« Reply #1 on: March 06, 2017, 01:27:34 AM »
Take a look at loadspacehelper.py, look for App.Game_GetOffensiveDifficultyMultiplier() and App.Game_GetDefensiveDifficultyMultiplier()