Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The order in which things are built and researched will usually be quite different depending on the power level, so your script should act accordingly.

Values

Note: INSANE AI's get double the power!

ValueDescriptionINSANE AI Value
400Low power800
700Medium power1400
1000High power levels2000

Examples

Code Block
themeEclipseRDark
languagejavascript
titleSwitching based on power level setting
linenumberstrue
switch (powerType) {
  case 1000: {
    console("it's a high power game");
    break;
  }
  case 700: {
    console("it's a medium power game");
    break;
  }
  case 400: {
    console("it's a low power game");
    break;
  }
  default: {
    console("unrecognised power level!");
  }
}

See also